Timedemo: Difference between revisions
Jump to navigation
Jump to search

Warning:Playback of demo files can be used as a benchmark, but may not reflect actual in-game performance.
Tip:Disable vertical sync (VSync) (
Confirm:What about accuracy?
m (Multipage removal) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
<!-- | <!-- | ||
--><noinclude>{{stub}}</noinclude> | --><noinclude>{{stub}}</noinclude> | ||
<p>Timedemo is a console command available in {{src|4}} to benchmark your personal computer with a demo.</p> | |||
<p>To record a demo, type <code>record "name"</code> while in a game server. This will record a demo called <code>name.dem</code>.</p> | |||
<p>To benchmark, open console and type <code>timedemo filename</code></p> | |||
<p>This will play a demo as fast as possible and print the performance results to the console.</p> | |||
<p>EXAMPLE: <code>535 frames 1.565 seconds 341.77 fps (2.93 ms/f) 47.449 fps variability</code></p> | |||
<p>To print the performance results to a text file, type <code>timedemo filename stats.txt</code></p> | |||
This will create a text file called stats.txt to, e.g. <code>hl2\stats.txt</code> (You can find your demo files there too.)</p> | |||
<h1>Commands</h1> | |||
timedemo <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]< | <p><pre>timedemo <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]</pre></p> | ||
<p><pre>timedemoquit <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]</pre></p> | |||
timedemoquit <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]< | |||
== Limitations/Bugs == | == Limitations/Bugs == | ||
Line 16: | Line 20: | ||
{{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...}} | {{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}}{{this is a|console command|name=timedemo}} | {{confirm|What about accuracy?|offset=1}}{{this is a|console command|name=timedemo}} | ||
== External links == | |||
* [https://developer.valvesoftware.com/wiki/Demo_Recording_Tools Demo Recording Tools] | |||
{{stub}} | {{stub}} |
Latest revision as of 05:02, 1 February 2025



This article is an orphan, meaning that few or no articles link to it.
You can help by
adding links to this article from other relevant articles.
January 2024
You can help by

January 2024
Timedemo is a console command available in 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


-forcenovsync
command line argument) and set fps_max high enough in order to play demos with timedemo at higher rate...
timedemo
is a console command available in all Source games.
External links