r_swapInterval

Base Jedi Academy

Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.

Controls r_swapInterval in the renderer module. Consult the cited behavior reads before relying on values not listed here.

At a glance

Field Value
Category Graphics & rendering
Module renderer
Also registered in renderer, engine-shared
Renderer rd-dedicated
Network scope client-only — Local to the client/UI/renderer.
Derivation code-trace
Confidence high
In-game xdocs No
In-game menu Yes — ingame_setup.menu:1506, ingame_setup.menu:1570, setup.menu:1347
Default 0
Value type enum
Restart Yes; the value is latched.
Cheat protected No

Values

Value Meaning Evidence
-1 Selects the code path tested for value -1. shared/sdl/sdl_window.cpp:169
0 Selects the code path tested for value 0. codemp/rd-vulkan/vk_swapchain.cpp:144

Flags

Registration-specific defaults

Default Module Renderer Compile condition
0 engine-shared always
0 renderer rd-dedicated always

Provenance

Origin: Base Jedi Academy

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
2013-04-16 OpenJK 714c868b42c6
Merge branch ‘master’ of https://github.com/Razish/OpenJK
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/rd-dedicated/tr_init.cpp, codemp/rd-dedicated/tr_local.h, codemp/rd-vanilla/tr_local.h high
2013-08-02 OpenJK dd9bd9b9ae92
Refactored renderer API, fixed some Ghoul2 crashes
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-dedicated/tr_init.cpp medium
2013-12-19 OpenJK f5c2af345b66
[MP] r_swapInterval requires CVAR_LATCH with SDL.
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-dedicated/tr_init.cpp medium
2015-02-07 OpenJK a7c43677a2bb
Merge pull request #613 from JACoders/sdl2-windows-port
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. shared/sdl/sdl_window.cpp medium
2015-11-13 OpenJK 5ef5d7214371
Merge branch ‘master’ of https://github.com/JACoders/OpenJK
Changed an exact bound cvar-variable reference. shared/sdl/sdl_window.cpp medium
2016-03-24 EternalJK c9c6ab99fdd2
Merge branch ‘master’ of https://github.com/JACoders/OpenJK into japro
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-dedicated/tr_init.cpp medium
2017-08-31 OpenJK 913e3cc57ec7
Merge branch ‘master’ of https://github.com/JACoders/OpenJK.git
Changed registration, default, flags, module, renderer scope, handler, or gating. shared/sdl/sdl_window.cpp medium
2017-12-29 EternalJK 43b393062090
Merge remote-tracking branch ‘upstream/master’
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-dedicated/tr_init.cpp medium
2021-05-25 TaystJK d7d7ce3234e6
Added vanilla clone for code compare
Changed an exact bound cvar-variable reference. codemp/rd-vulkan/tr_local.h medium
2021-05-25 Vulkan c4a9c87ef0e3
Added vulkan renderer
Changed an exact bound cvar-variable reference. codemp/rd-vulkan/vk_swapchain.cpp high
2021-10-24 Vulkan bd3a458a8bb2
Various fixes and upstream changes from Quake3e
Changed an exact bound cvar-variable reference. shared/sdl/sdl_window.cpp high
2022-02-14 TaystJK 507a46dfc17d
Collection of code cleanup and refactoring. Plus recent quake3e changes
Changed an exact bound cvar-variable reference. codemp/rd-vulkan/vk_swapchain.cpp medium
2024-02-03 TaystJK 0c789787f79c · PR #110
Rend2 updates (#110)
Changed an exact bound cvar-variable reference. shared/rd-rend2/tr_local.h medium

Evidence