This records player input / camera movement and plays it back. Some player actions such as vehicle movement are not supported.
You need to start and record in game mode (editor or pure game) after the level was already loaded. After each playback you get log printout like this (to console and also the file timedemo.log in the level directory for the level used):
TimeDemo Run 131 Finished. Play Time: 3.96s, Average FPS: 50.48 Min FPS: 0.63 at frame 117, Max FPS: 69.84 at frame 189 Average Tri/Sec: 14037316, Tri/Frame: 278071 Recorded/Played Tris ratio: 0.99
Keybinding:
Ctrl + PrintScreen:
In the console:
record
or alternatively you can set the fixed timestep first and then record as follows:
demo_fixed_timestep 60 record
Keybinding:
Ctrl + Break:
In the console:
stoprecording
Keybinding:
Shift + PrintScreen:
In the console:
demo
Keybinding:
Ctrl + Break:
In the console:
stopdemo
Note: This method is currently in an unknown state. It is not used for autotest and benchmarking.
The demo recorder serializes all game events like a network server and writes them to a specified output file.
To start recording you load a map as usual but add "r" or "record" followed by the output file name in the command line:
example: map levelname r output.rec
All ingame actions and events, including your own player character, are recorded. The recorder is planned to work in singeplayer and multiplayer game modes.
To stop recording just quit the game.
To play a recorded file use the "play" command followed by the file name:
play output.rec