Library Of Ruina

Library Of Ruina

193 个评价
Dice Roll Fix
   
奖励
收藏
已收藏
取消收藏
标签: Fix
文件大小
发表于
更新日期
1.002 MB
2022 年 4 月 20 日 下午 1:34
2022 年 4 月 20 日 下午 1:38
2 项改动说明 ( 查看 )

订阅以下载
Dice Roll Fix

描述
Patches the awful vanilla dice roll implementation to be magnitudes more efficient.
Only has a notable performance impact on dice rolls with extremely large ranges or clashes with an extremely large number of dice.
Also prevents softlocks due to absurdly wide-ranged rolls.


A roll with a maximum value of exactly 2147483647 will overflow, but you probably shouldn't be using a value that large. Also vanilla rolls will break if the result is one higher than that anyways.

MakeDiceResult's tuneLevel still does nothing with this patch, although it already does nothing in vanilla. If tuneLevel does not equal 0, this patch will defer to vanilla logic just in case something else patches tuneLevel back in.

Thanks to Invidia for making the thumbnail.
7 条留言
uGuardian  [作者] 2023 年 10 月 13 日 下午 1:16 
As amusing as it would be, and as much as I'd love to like, be hired to make optimization fixes and such, this mod is so tiny that there's realistically nothing I could even claim took work. Basically I'm just short circuiting a badly designed deprecated system and directly doing the end result instead.
CatMik 2023 年 9 月 30 日 上午 3:17 
They should pay you for the rights to use this and patch it into the game.
uGuardian  [作者] 2022 年 6 月 22 日 下午 5:46 
Yup, that's exactly what it does.
Stormimi 2022 年 6 月 22 日 上午 1:07 
So this mod changes nothing but makes the game smoother from a player perspective?
Poom36yu 2022 年 6 月 7 日 上午 10:18 
good mod
uGuardian  [作者] 2022 年 4 月 21 日 上午 10:24 
It uses a nearly identical algorithm without the horrific completely pointless intermediary steps that eat a ton of memory and take magnitudes more processor cycles.
Araders 2022 年 4 月 21 日 上午 1:39 
So does the modification purely optimize the dice rolls or does it fix the algorithm itself?