Hi! I want to get into optimization and have a question regarding event tick. From an optimization perspective what is going to be more optimized: setting certain value to variable (widget text) every tick or checking beforehand if It’s already set to value and only if not set it to value I need? I don’t know if maybe it doesn’t affect performance at all
Both of these are pretty much the same, because you’re doing it on tick.
I would only bother optimizing if you’re having problems.
I believe it’s possible to trigger updates in a widget using event dispatchers, so you only update when something has actually changed. But like I say, a lot of hassle if you’re not noticing any problems…
I don’t know if I should bother, but when I open up my level and see that FPS is not 120 but 80, I want to do everything I can to bring it up, because in the end I have to it anyways, better to do it as soon as I see it. Actually I haven’t done any research on this and not sure if it’s a reachable and reasonable thing to do