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
CVAR_ARCHIVE— saved to the user configuration
Provenance
Origin: EternalJK
- TaystJK integration evidence:
64b8343c85ea - Origin pull request: #2
- Attribution method:
squash-feature-group-explicit-credit - Attribution confidence:
high - Notes: The identifier’s single-prefix squash feature group explicitly credits 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 #88Merge 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
- registration: codemp/server/sv_init.cpp:1059 (Cvar_Get); condition
defined(DEDICATED) - behavior: codemp/server/sv_snapshot.cpp:865
- behavior: codemp/server/sv_ccmds.cpp:1642
- behavior: codemp/server/server.h:140
- behavior: codemp/server/server.h:144
- documentation: docs/japro_docs.md:135