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.
Train game
A work-in-progress game probably featuring trains. Not a puzzle game.
Status | In development |
Author | d w roberts |
Tags | Life Simulation, Trains |
More posts
- Train delayed (or cancelled)Nov 04, 2023
- Back on track(s)Jun 01, 2023
- Train yardsApr 23, 2023
- Frame timing hellApr 21, 2023
- Basic object placementApr 15, 2023
- Spline cleanupApr 10, 2023
- NPCs, shops, inventoriesApr 09, 2023
- Basic gameplay milestoneApr 03, 2023
- Invisible technical workApr 02, 2023
- Putting some more thought into artworkMar 26, 2023
Leave a comment
Log in with itch.io to leave a comment.