Timedemo: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 11: Line 11:
== Limitations/Bugs ==
== Limitations/Bugs ==
{{warning|Playback of demo files can be used as a benchmark, but may not reflect actual in-game performance.}}
{{warning|Playback of demo files can be used as a benchmark, but may not reflect actual in-game performance.}}
{{tip|Disable VSync and set [[fps_max]] high enough in order to play demos with timedemo at higher rate...}}
{{tip|Disable vertical sync (VSync) (<code>-forcenovsync</code> [[command line argument]]) and set [[fps_max]] high enough in order to play demos with timedemo at higher rate...}}
{{confirm|What about accuracy?|offset=1}}
{{confirm|What about accuracy?|offset=1}}

Revision as of 06:54, 18 July 2023

English (en)Translate (Translate)

Stub

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

Developer Console...

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

2 frames 1.234 seconds 12.34 fps (12.34 ms/f) 12.345 fps variability


timedemoloop...
timedemoquit <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional stats.txt
timedemo_vprofrecord <demoname> <vprof stats filename> : gets demo speeds, recording perf data to a vprof stats file

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?