Skip to reading
Console Game Setup & Testing

Find the scene that sets your frame budget

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

14 / PERFORMANCE

If you aim for 60 frames per second, the game gets about 16.7 milliseconds per frame. At 30 it gets about 33.3 milliseconds. A room can average 60 and still hitch every time the camera turns toward the clock tower. Look at individual slow frames and what the game was doing at the time.

01. Choose three repeatable moments from your game, such as the first view of a busy street, a camera pan with fog and particles, and an inventory opening over a crowded room. Record the camera, save slot and settings so you can return to the same view.

02. Use the desktop Godot profiler to look for script work and repeatable stalls. On the kit, use the port’s supported performance tools for CPU, GPU, memory and loading. Measure a cold launch and a repeat visit. Run a release-like build before settling on final numbers.

03. Change one thing at a time. If lowering render resolution improves a slow view, investigate GPU work such as shadows, fog or transparent effects. If it barely helps, look at script time, animation and resource loading. Treat each change as a clue and confirm it with another capture.

04. Travel between the two largest rooms repeatedly, then play the longest cutscene. Watch peak memory and whether it settles back down. A level can run well once and still run out of memory after repeated transitions. Compare equivalent shots on each supported hardware model or display mode.

A useful bug report says “the second pan into the snowy square takes 48 ms with fog on and 24 ms with it off on this build and kit.” The person fixing it can measure the same pan after changing the effect.

Page 15 of 20Permalink
Go to page