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 |
|---|---|
| Default | 1 |
| Value type | enum |
| Restart | Yes; the value is latched. |
| Manually settable | Yes |
| Cheat protected | No |
| Network scope | client-only: Local to the client/UI/renderer. |
| Category | Graphics & rendering |
| Feature family | Dynamic lights |
| Module | renderer |
| Renderer | rd-rend2, rd-vulkan |
| Derivation | code-trace |
| Confidence | high |
| Added | 2021-05-25 in c4a9c87ef (how to compare this against your build) |
| In-game xdocs | No |
| In-game menu | No |
Values
| Value | Meaning | Evidence |
|---|---|---|
2 |
Selects the code path tested for value 2. | codemp/rd-vulkan/tr_light.cpp:331 |
Enforced ranges
0through2(integer; Cvar_CheckRange). Evidence: codemp/rd-vulkan/tr_init.cpp:948
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, codemp/rd-vulkan/tr_light.cpp, codemp/rd-vulkan/tr_local.h and 2 more |
high |
2021-10-24 |
Vulkan | bd3a458a8bb2Various fixes and upstream changes from Quake3e |
Changed an exact bound cvar-variable reference. codemp/rd-vulkan/tr_shadows.cpp |
high |
2023-10-03 |
TaystJK | 86c0756385ef · PR #12Rend2 (#12) |
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/rd-rend2/tr_init.cpp |
medium |
2024-02-03 |
TaystJK | 0c789787f79c · PR #110Rend2 updates (#110) |
Changed an exact bound cvar-variable reference. shared/rd-rend2/tr_glsl.cpp, shared/rd-rend2/tr_image.cpp, shared/rd-rend2/tr_local.h and 2 more |
medium |
2025-04-15 |
rend2 | c98ecf977bd3 · PR #217Rend2 update (#217) |
Changed an exact bound cvar-variable reference. shared/rd-rend2/tr_shade.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
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.