Historical: Linux-based prototype
Frame pacing
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
Frame pacing describes how evenly frames arrive. A steady 60 frames per second can look smoother than an uneven 90. This page explains the terms. Khelforge has measured none of them.
General background
Section titled “General background”Frame time is the time between two frames, in milliseconds. FPS is 1000 divided by it. The numbers below are arithmetic, not measurements.
| FPS | Time per frame |
|---|---|
| 30 | 33.3 ms |
| 60 | 16.7 ms |
| 120 | 8.3 ms |
| 144 | 6.9 ms |
| 240 | 4.2 ms |
| Term | Meaning |
|---|---|
| Average FPS | Frames divided by seconds. Hides short stalls |
| Median | The middle frame. Describes a typical frame |
| P95, P99 frame time | 95% or 99% of frames were faster than this |
| 1% low | The slowest 1% of frames, expressed as FPS. Tools define it differently, so the method must be stated |
| Variance | How much frame times spread |
| Stutter | One or more frames much longer than their neighbours |
Common causes of uneven frames
- compiling shaders during play. See shaders
- a critical thread waiting for a core
- loading from disk, or moving data into video memory
- memory pressure
- a mismatch between frame rate and refresh rate. See display synchronisation
- heat or power limits that change clock speed during play
A frame counter inside the game measures when the game hands over a frame. What the eye sees also depends on the compositor and the display.
What Khelforge does today
Section titled “What Khelforge does today”Nothing measures frames. Task Manager shows Frame pacing / FPS as Unavailable. The compositor has no per-game frame timing.
The display path also has a known pacing limit. Every frame is composited, without direct scan-out, variable refresh or tearing control, and this limits frame pacing.
What is planned
Section titled “What is planned”The benchmark plan asks for median FPS, 1% lows, P95 and P99 frame times and shader stutter. A study of the display path is also planned.