Repository navigation
Frame Rate
THUG2 runs its game at 60 ticks a second and draws one frame per tick. Two settings change that.
max_fps draws extra frames between the game's ticks. The game itself still runs at 60 - the same physics, scripts
and replays - and each extra frame shows the models, skeletons and camera blended between the last two ticks. The
picture is up to 1/60 s behind the game; cuts and teleports aren't blended.
| Where | Setting |
|---|---|
| Options > Graphics | Frame rate, V-sync, Show FPS |
thug2-decomp.ini [Graphics]
|
max_fps=144 (or 60-1000, or uncapped; 0 the original) |
| Key | Default | What it does |
|---|---|---|
max_fps |
0 | 0 one frame a tick (the original), 60-1000 a cap, uncapped as many as fit |
present_mode |
vsync |
vsync (waits for the display; its refresh rate caps max_fps), mailbox (no waiting, no tearing) or immediate (no waiting, may tear) |
show_fps |
0 | 1: a counter in the top-right corner |
Both change at once from the Options screen.

show_fps=1, or F3 for the current run ([Keybinds] FpsCounter= another key), shows the frames drawn a second,
the mean frame time, the 1% low and the game's own ticks a second - 60 while it keeps up, orange below 57.
[Graphics] tick_rate=120 (60-240; 120, 144 and 240 are the ones meant) runs the game itself in shorter ticks: the
physics, scripts and timers step more often. At 60 nothing changes. It is read at start-up.
It isn't finished:
- much of the game still counts in 60 Hz ticks, so some timings and moves differ at other rates;
- online play at another rate isn't supported - play online at 60;
- a demo plays only at the rate it was recorded at (a plain playback holds each recorded frame over its time).
For smooth motion today, use max_fps and leave tick_rate at 60.
[debug] frame_profile=1 writes a breakdown to the log every 5 seconds: frames drawn a second, their spacing, each phase
of the main loop and the GPU's own time. node tools/game/frame_bench.ts runs a fixed scenario per level with it and
reports.
Rendering
- Vulkan renderer
- Graphics options
- Ray-traced lighting
- Reflections
- Relit levels
- Per-pixel lighting
- Sky and fog
- Water
- Grass
- Lamp lights
- HDR and bloom
- Upscaling
- Tessellation
Looks
Gameplay and content
Tools