The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

137 betyg
Mod Profiler
2
2
3
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Tags: Lua
Filstorlek
Lades upp
Uppdaterades
113.995 KB
1 jun, 2021 @ 22:19
11 aug @ 0:31
16 ändringsnotiser ( visa )
Du behöver DLC för att kunna använda denna artikel.

Abonnera för att ladda ner
Mod Profiler

I 1 samling av ☢ Nato Potato ☢
NatoPotato's Binding of Isaac Mods
120 artiklar
Beskrivning
A little tool to measure the amount of time taken by certain functions run by mods.

(Original prototype made by Five Pebbles, modified by me to have more features and to be able to work without requiring luadebug)

While in game press 'i' to toggle the tool on or off, it will have a list of currently running mods on the bottom left and currently running functions on the bottom right.

The mod and function that take the most time to run in the current frame will be added to the lists on the top left and top right.



You can set the minimum time in ms it takes for a callback to be registered (default is 1ms, personally I set mine to 10) by opening the console with ~ and entering "MinFunctionTime X" where X is a number.

By default anything that takes 25ms or more will be full red, with times under that being some gradient of white-red based on how slow they are, you can change this by opening the console and entering "MaxFunctionTime X" where X is the ms cap. (eg if your computer is slow and everything is red you might want to increase the number)

You can set the size of the font by opening the console and entering "ProfilerTextScale X" where X is a number, though it will probably look weirdly pixelated if you use a value other than a multiple of 0.25. (and unless your screen is huge and high-res anything less than 0.5 will probably be unreadable)

GO INTO GAME OPTIONS AND TURN OFF "FILTER" TO SEE THE TEXT



You can press 'u' to pause the display update, or 'y' to check functions on post update rather than post render.
(as post_render runs twice as often and if you're trying to detect something happening on post_update it can help to not have post_render functions cutting in)

While the list is paused you can press 'h' and 'n' to scroll through the list if you want to check something and didn't pause quick enough.



NOTES:
The mod will add a bit more time to each callback that runs, and will be constantly sorting a table of the running mod callbacks while you have the display on, so you will get better performance if you disable it once you're done using it to check things (though how much of a difference really depends on how many mods you have running and how many callbacks they add).

Since it is wrapping every callback function with its own function if any mod has an issue that causes an error message the error message will probably also mention this mod despite it not actually contributing to the error.
77 kommentarer
Unable 4 okt @ 21:42 
@Usi The Storm I forgot to update this thread but yea I posted that Reddit comment lmao good to know people are able to get help from reading it lol
Usi The Storm 4 okt @ 15:47 
@Unable TSIL is The Library of Isaac (I don't understand why it's shortened to TSIL) which is a Lua library that a lot of mods use. To figure out what mods are using it, you need to go to your mod folder, and then search TSIL, then right click any instances of the file and press show location to see what mod it's in. If there's multiple, you'll just have to test to see which one is causing the error. I think you'd need to contact the mod author to fix it or just remove the mod.
P.s. just copy someone`s answer from reddit that worked for me
P.s.s Maybe even your own answer judging by nickname similarity 😁
Unable 4 okt @ 0:04 
Does anyone know what TSIL_MOD is? I can't figure out what it is but it's causing a lot of lag
Unable 27 sep @ 6:07 
I don't think the MinFunctionTime X command is working for me
☢ Nato Potato ☢  [skapare] 11 aug @ 0:26 
that would be a debugging check, which shouldn't be appearing unless something has gone wrong, but if something's gone wrong it also shouldn't be nil, I'll do some testing
Nanashi 10 aug @ 6:06 
When I got this mod active, ob the top left of the screen it's saying "nil" written in green color.
I can't figure out what to do with it.
Yourname942 29 jul @ 6:41 
is it possible to dump the text to some sort of log file?
splashdaddy 11 jul @ 2:52 
@Naxza did these mods make your game crash?
Naxza 7 jul @ 12:58 
Has helped me snipe a couple of poorly-performing mods in ten minutes that would've taken hours of meticulous toggling to pinpoint. This is a fantastic tool, thank you.
☢ Nato Potato ☢  [skapare] 24 mar @ 2:33 
unfortunately I don't get any issues when using that mod, I looked at it's code but didn't notice anything that would explain it, so it's hard to determine what's causing your issue, it's possible you've got an older or corrupt version of a mod (either this or faster animations) which should be fixable by unsubscribing from both, running the game, quitting once the menu loads and then resubscribing, if that doesn't work I'm not sure