r_device
Base Jedi Academy
Select physical device to render: 0+ - use explicit device index -1 - first discrete GPU -2 - first integrated GPU
At a glance
| Field | Value |
|---|---|
| Category | Graphics & rendering |
| Module | renderer |
| Also registered in | renderer |
| Renderer | rd-vulkan |
| Network scope | client-only — Local to the client/UI/renderer. |
| Derivation | documented |
| 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 |
|---|---|---|
0+ |
Use explicit device index. | codemp/rd-vulkan/tr_init.cpp:912 |
-1 |
First discrete GPU. | codemp/rd-vulkan/tr_init.cpp:912 |
-2 |
First integrated GPU. | codemp/rd-vulkan/tr_init.cpp:912 |
Flags
CVAR_ARCHIVE_ND— saved to configuration without marking the cvar as user-createdCVAR_LATCH— latched until the relevant subsystem or map is restarted
Provenance
Origin: Base Jedi Academy
- Baseline evidence:
14cea1563762 - Upstream registration evidence: code/mac/mac_glimp.c:701
- Attribution method:
present-in-openjk-initial-source-import - Attribution confidence:
high - Notes: Identifier is present in OpenJK’s initial Raven source-import snapshot. Dated commit evidence identifies later registration changes relative to the origin snapshot.
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-24 |
OpenJK | f6cadd34c6abMerge branch ‘master’ of https://github.com/Razish/OpenJK into modrender-port |
Changed registration, default, flags, module, renderer scope, handler, or gating. code/mac/mac_glimp.c |
high |
2021-05-25 |
Vulkan | c4a9c87ef0e3Added vulkan renderer |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/rd-vulkan/tr_init.cpp |
high |
Evidence
- registration: codemp/rd-vulkan/tr_init.cpp:912 (Cvar_Get)
- behavior: codemp/rd-vulkan/vk_instance.cpp:946
- behavior: codemp/rd-vulkan/tr_init.cpp:917
- behavior: codemp/rd-vulkan/tr_init.cpp:916