The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

127 ratings
Mod Profiler
2
3
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Lua
File Size
Posted
Updated
114.223 KB
Jun 1, 2021 @ 10:19pm
Feb 7 @ 4:29am
15 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Mod Profiler

In 1 collection by ☢ Nato Potato ☢
NatoPotato's Binding of Isaac Mods
120 items
Description
A little tool to measure the amount of time taken by certain functions run by mods.

(Original prototype made by bunny, 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.
68 Comments
☢ Nato Potato ☢  [author] Mar 24 @ 2:33am 
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
Mar 24 @ 12:23am 
I've tested it out and found that it's incompatible with https://steamcommunity.com/sharedfiles/filedetails/?id=2499964071&searchtext=faster+animation . Both mods work fine independently. Could you fix it? Thank you.If it's too much trouble, I can use another acceleration mod.
☢ Nato Potato ☢  [author] Mar 23 @ 10:01pm 
I have used this just fine with MMC, and I tried running it with anticrash and it was fine, does the error still occur if you disable other mods? if it stops happening when other mods are disabled it would be helpful to know which mod causes it (process of elimination is much quicker if you do it in halves, e.g. have half your mods enabled half disabled, then test and you'll know which half its in, so then you have half of those mods enabled and half disabled, testing 2 halves then 2 quarters 2 eighths, etc)

from what the error message says it seems a callback is being set up with no function, though I'm not sure why this would happen unless maybe something is also messing with the callback system or a mod is set up wrong
Mar 23 @ 9:04pm 
[INFO] - Lua Debug: [AntiCrash] ver. 1.18 | config: {"alwaysOn":false,"configVersion":3,"disabledForSeed":false,"saferTearDetonator":true,"improveModCompatibility":true,"superMode":false,"lastSeed":722728485,"exitedCleanly":true,"debug":false,"enabled":false}
[INFO] - [warn] no animation named Idle
[INFO] - [warn] no animation named Yellow
[INFO] - [warn] no animation named Yellow
[INFO] - [warn] no animation named Yellow
[INFO] - [warn] no animation named Yellow
[INFO] - [warn] no animation named
[INFO] - [warn] no animation named Idle2
[INFO] - [warn] no animation named Idle
[INFO] - [warn] no animation named Idle
[INFO] - music stopped playing
[INFO] - [warn] no music for ID 35 ().
[INFO] - Error in "PostRender" call: ...ac Rebirth/mods/!!!!!!!!!modprofiler_2505060515/main.lua:426: attempt to call a nil value (upvalue 'callbackFn')
This is the earlier part of a series of red error messages. Could it be caused by AntiCrash or Music Mod Callback?
☢ Nato Potato ☢  [author] Mar 23 @ 6:05am 
it depends, if another mod had a callback function fail then it could also make this mod fail since it loads and stores all the other mods callbacks, in which case the error message would have multiple lines and mention some other mod as well as mod profiler

if you look at your log file and find errors are there any mentions of other mods or is it just the bit in your comment?
Mar 23 @ 12:05am 
After I used this mod on the rep+ version, the console reported a red error:"PostRender" failed:... ac Rebirth/mods/!!!!!!!!!!! modprofiler_2505060515/main.lua : 426 : attempt to call a nil value (upvalue 'callbackFn').And I pressed 'i', but nothing happened.
I haven't installed repentogon. Is this the cause of the error? Could you fix this error? If you need more error log, please let me know. I'm more than willing to assist you in resolving this issue.Thank you.
☢ Nato Potato ☢  [author] Feb 6 @ 6:08pm 
hmm, I'm not getting any errors with cathedral in greed mode, and I just realized you meant the text isn't even appearing (rather than just "I can't read it"), if you could comment one of the error messages here, or maybe use pastebin to send me a link for your log.txt file (Documents\my games\Binding of Isaac Repentance) that would be great
Guineatown20806 Feb 6 @ 1:04pm 
Also, I still can't see the text. No matter what number I put in the ProfilerTextScale command. I don't know why. It also still lags a ton when I am in a run. I have no idea what is up with that.:steamsad:
Guineatown20806 Feb 6 @ 12:29pm 
Thanks a lot for the quick update. The lag no longer acumaletes. However I am still getting lots of MC_INPUT_ACTION errors with the mod Cathedral in greed mode.
☢ Nato Potato ☢  [author] Feb 6 @ 10:44am 
its been updated, if you still see tons of errors, try unsubscribing, deleting the mod from your pc (Steam\steamapps\common\The Binding of Isaac Rebirth\mods\!!!!!!!!!modprofiler) run the game until you see the title screen, then resubscribe, close and re-open the game