r_dlightMode
rend2
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Controls r_dlightMode in the renderer module. Consult the cited behavior reads before relying on values not listed here.
At a glance
| Field | Value |
|---|---|
| Category | Graphics & rendering |
| Feature family | Dynamic lights |
| Module | renderer |
| Also registered in | renderer |
| Renderer | rd-rend2, rd-vulkan |
| Network scope | client-only — Local to the client/UI/renderer. |
| Derivation | code-trace |
| Confidence | high |
| In-game xdocs | No |
| In-game menu | No |
| Default | 1 |
| Value type | enum |
| Restart | Yes; the value is latched. |
| Cheat protected | No |
Values
| Value | Meaning | Evidence |
|---|---|---|
2 |
Selects the code path tested for value 2. | codemp/rd-vulkan/tr_light.cpp:331 |
Flags
CVAR_ARCHIVE— saved to the user configurationCVAR_LATCH— latched until the relevant subsystem or map is restarted
Registration-specific defaults
| Default | Module | Renderer | Compile condition |
|---|---|---|---|
1 |
renderer |
rd-rend2 |
always |
2 |
renderer |
rd-vulkan |
defined(USE_PMLIGHT) |
Provenance
Origin: rend2
- Ultimate-origin introduction:
be28b4edd6c7in rend2 (content authored2013-10-08, integrated2023-10-03) - TaystJK integration evidence:
c4a9c87ef0e3 - Upstream registration evidence: codemp/rd-rend2/tr_init.cpp:1534
- Attribution method:
introduction-commit-explicit-credit - Attribution confidence:
high - Notes: rend2 retains origin because content authorship and PR submission predate the project that merged the work first. The TaystJK integration evidence credits vulkan as an immediate port source, but rend2 has an earlier dated introduction and remains the ultimate origin. Dated commit evidence identifies later registration changes relative to the origin snapshot.
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 |
|---|---|---|---|---|---|
| OpenJK | 2013-10-08 |
— | 2023-10-03 |
be28b4edd6c7 |
Shared integration commit |
| rend2 | 2013-10-08 |
— | 2023-10-03 |
be28b4edd6c7 |
Ultimate origin |
| TaystJK | 2021-05-25 |
— | 2021-05-25 |
c4a9c87ef0e3 |
Other project appearance |
| jaPRO | 2021-05-25 |
— | 2021-05-25 |
c4a9c87ef0e3 |
Other project appearance |
| Vulkan | 2021-05-25 |
— | 2021-05-25 |
c4a9c87ef0e3 |
Other project appearance |
| NewJK / NewMod | 2026-08-09 |
— | 2026-08-09 |
686cbf9b649b |
Other project appearance |
Immediate port-source credit: Vulkan. The earlier dated project remains the ultimate origin.
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 |
|---|---|---|---|---|
2021-05-25 |
Vulkan | c4a9c87ef0e3Added vulkan renderer |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-vulkan/tr_init.cpp |
high |
2023-10-03 |
TaystJK | 86c0756385ef · PR #12Rend2 (#12) |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-rend2/tr_init.cpp |
medium |
Evidence
- registration: codemp/rd-rend2/tr_init.cpp:1569 (Cvar_Get)
- registration: codemp/rd-vulkan/tr_init.cpp:947 (Cvar_Get); condition
defined(USE_PMLIGHT) - behavior: codemp/rd-vulkan/tr_light.cpp:331
- behavior: codemp/rd-vulkan/tr_light.cpp:350
- behavior: codemp/rd-vulkan/tr_light.cpp:396
- behavior: codemp/rd-vulkan/tr_mesh.cpp:342
- behavior: codemp/rd-vulkan/tr_shadows.cpp:143