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

Timedemo: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Timedemo/en to Timedemo without leaving a redirect: Move en subpage to basepage)
No edit summary
 
Line 4: Line 4:
<!--
<!--
--><noinclude>{{stub}}</noinclude>
--><noinclude>{{stub}}</noinclude>
[[Developer Console]]...
<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]]<br />
<p><pre>timedemo <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]</pre></p>
<pre>2 frames 1.234 seconds 12.34 fps (12.34 ms/f) 12.345 fps variability</pre><br />
<p><pre>timedemoquit <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]</pre></p>
timedemoloop...<br />
timedemoquit <demoname> <optional stats.txt> : gets demo speeds, writing perf resutls to the optional [[stats.txt]]<br />
timedemo_vprofrecord <demoname> <vprof stats filename> : gets demo speeds, recording perf data to a vprof stats file


== 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

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.