Hi,
I created a character menu screen that displays a Combatant element with quite a lot of status values (I have over 25) and a lot of them are combined ones that are calculated with formulas. Whenever the menu is opened there is a considerable drop in frame rate. I assume this is because of all the status values being calculated.
Is it possible to lower the frequency of the calculations? Or is there any other fix for this lag?
So, unless your status values are constantly changing, there shouldn't be much going on here.
Which UI system are you using?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
But for sure when I opened my stats menu yesterday the FPS dropped by half at least. I don't think I was dreaming.
Naturally, it'll also have an impact on general performance just by displaying it due to the UI being rendered, but that shouldn't cause troubles, unless you're displaying a lot :)
E.g. if you have a HUD per combatant and there are 100 combatants displaying their HUDs, that will have an impact ...
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
So if the player has a status effect on and they open the stats menu the profiler looks like this:
Edit 2: Okay nevermind, this got fixed by limiting the AI radius in battle settings. :) The UI lag is still there though.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It reduces characters agility by 100% set on apply. Doesn't even use a formula, just a direct 100 sub percent.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It seems to happen with every status effect, not just that one. Tested another one that gives +15 defense attribute bonus against beasts and it also lags when having all my character stats visible, even though attributes are not visible in the menu at all.
Does your menu screen contain other parts or just displaying the combatant's stats (via the Combatant part)?
Also, is there anything else displayed in the HUD beside the status values (and are they only in text or also as value bars)?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I'd need a Unity test project with your setup to look into it.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Send it to contact@orkframework.com (or upload it somewhere and send the link).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!