Frame times


Did a quick errand this evening and added a debug visualisation for how long each frame is taking to complete. 

This is a really useful tool to spot jitter that might be easy to miss visually. Especially after adding new systems to the game - seeing big spikes and changes in this visualisation is a useful canary of a problem somewhere

Frame time across 500 frames - green is 16 milliseconds or less, red is anything over (most 'peaks' here are barely 17ms)

One nice little demonstration of this working properly, is that it correctly visualises the constant jitter introduced by checks / behaviours when the game is compiled in debug mode instead of release:

A very jittery frame graph

Not a pretty sight, and not a graph you would want to see in a release build. 

Leave a comment

Log in with itch.io to leave a comment.