Skip to content

0.3.1

Latest

Choose a tag to compare

@Producdevity Producdevity released this 05 Dec 23:08

The frame graph no longer slows games down.

  • With the graph shown, every frame waited on the GPU while the overlay wrote the newest bar into its font texture. On Mali that wait cost 1-7.6 ms per frame: Dusklight on an RG40XX-H dropped from 25 to 21 fps with the Graph preset. The bars are now drawn from a small uniform array, so nothing waits on the GPU anymore.
  • The cost row now shows the overlay's real time per frame. It used to show only CPU time, which hid the GPU wait and under-reported by up to 20x.

Overlay time per frame with the Graph preset, before and after:

Port Device Before After
Dusklight RG40XX-H (KNULLI) 5.6 ms, 21.0 fps 0.19 ms, 24.9 fps
BioShock RG40XX-H (KNULLI) 7.6 ms 0.22 ms
Galaxy RG40XX-H (KNULLI) 1.15 ms 0.42 ms
Dusklight RG35XX-H (muOS) 1.25 ms, 28.3 fps 0.16 ms, 29.2 fps

With the fix, the Graph and Full presets run at the same speed as the overlay turned off, within run-to-run noise. Hidden still costs about 0.02-0.03 ms. The GLES1 renderer never had this problem and is unchanged.

Tested in Dusklight, Super Mario Galaxy and BioShock on an RG40XX-H (KNULLI), and Dusklight on an RG35XX-H (muOS). The overlay's FPS reading matches the frames counted on the device.