This article's documentation is for anything that uses the Source engine. Click here for more information.

timedemo

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

Stub

This article or section is a stub. You can help by expanding it.

Timedemo is a console command available in Source Source to benchmark your personal computer with a demo.

To record a demo, type record "name" while in a game server. This will record a demo called name.dem.

To benchmark, open console and type timedemo filename

This will play a demo as fast as possible and print the performance results to the console.

EXAMPLE: 535 frames 1.565 seconds 341.77 fps (2.93 ms/f) 47.449 fps variability

To print the performance results to a text file, type timedemo filename stats.txt

This will create a text file called stats.txt to, e.g. hl2\stats.txt (You can find your demo files there too.)

Commands

timedemo <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]

timedemoquit <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]

Limitations/Bugs

Warning.pngWarning:Playback of demo files can be used as a benchmark, but may not reflect actual in-game performance.
Tip.pngTip:Disable vertical sync (VSync) (-forcenovsync command line argument) and set fps_max high enough in order to play demos with timedemo at higher rate...
Confirm:What about accuracy?

timedemo is a console command available in all Source Source games.

External links


Stub

This article or section is a stub. You can help by expanding it.