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 |
|---|---|
| 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 |
| Module | renderer |
| Renderer | rd-vulkan |
| Derivation | documented |
| Confidence | high |
| Added | 2013-04-08 in 14cea1563 (how to compare this against your build) |
| In-game xdocs | No |
| In-game menu | 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 |
Enforced ranges
-2through8(integer; Cvar_CheckRange). Evidence: codemp/rd-vulkan/tr_init.cpp:916
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; and an exact bound cvar-variable reference. codemp/rd-vulkan/tr_init.cpp, codemp/rd-vulkan/tr_local.h, codemp/rd-vulkan/vk_instance.cpp |
high |
2022-02-16 |
Vulkan | 5ce497f25666Vulkan: linux & mac compiler warnings/errors cleanup. |
Changed an exact bound cvar-variable reference. 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
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.