sv_demoPreRecordKeyframeDistance

EternalJK

A demo can only start with a gamestate and full non-delta snapshot. How often should we save such a gamestate message? The shorter the distance, the more precisely the pre-record duration will be kept, but also the higher the RAM usage and regularity of non-delta frames being sent to the clients.

At a glance

Field Value
Category Demos & media
Module engine-server
Also registered in engine-server
Renderer All / not renderer-specific
Network scope server-authoritative — Owned or enforced by the server.
Derivation documented
Confidence high
In-game xdocs No
In-game menu No
Default 5
Value type int
Restart No latch flag is registered.
Cheat protected No

Values

No discrete value list is enforced or documented in the inspected source.

Flags

Provenance

Origin: EternalJK

Dated project introductions

Authored dates come from the exact registration’s first content commit, PR dates identify when work was proposed to each project, and integration dates come from each first-parent mainline. A project merging first does not override earlier upstream authorship or submission.

Project Authored PR opened Integrated Commit Relationship
TaystJK 2022-08-22 2023-06-14 2023-06-23 64b8343c85ea Other project appearance
jaPRO 2022-08-22 2023-06-23 64b8343c85ea Other project appearance

Later changes

These commits occur after the ultimate-origin introduction on TaystJK’s inherited first-parent lineage. Registration evidence is exact; behavior evidence requires a changed bound cvar reference or a changed registered command-handler hunk.

Date Change source Commit / subject Evidence Confidence
2024-01-14 TaystJK 80bf35177f0a · PR #88
Merge pull request #88 from TomArrow/taystjk_demomemorymanage
Changed an exact bound cvar-variable reference. codemp/server/sv_snapshot.cpp medium
2024-01-27 TaystJK a05fdded5341 · PR #102
- Fix: Pre-recording potentially not working after map changes/server time restarts. (#102)
Changed an exact bound cvar-variable reference. codemp/server/sv_snapshot.cpp medium

Evidence