i did a counter for a game (WebGL) and i need to show milliseconds every ticks but it seem there is a huge performance hit when a text object is updated every ticks especially when trying to show fast changing values such as milliseconds in real time, the huge performance hit happen only when showing milliseconds, i bet Construct 2 is doing some king of optimization which prevent the text to be redrawn or something like this so it do not happen with slow changing values.
The game lose almost half fps on Firefox when doing this, however on Chrome it seem the performance hit is very negligible.
- Create a text object
- Update it every ticks with "time" value
- Monitor "cpuutiisation" value with "time" value and with "int(time%60)"
In my game (on Firefox) the result is:
- CPU Utilisation-> 0.20 with "time" value
- CPU Utilisation-> 0.80 with "int(time%60)" value
Can it be improved or is there a workaround?