Skip to content

Vulkan: dedupe r_imgui init; fix cs_autoInit compat grep#223

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/obsolete-feature-flags-dde2
Draft

Vulkan: dedupe r_imgui init; fix cs_autoInit compat grep#223
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/obsolete-feature-flags-dde2

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 25, 2026

Summary

This branch removes stale duplicate plumbing around the ImGui debug toggles and fixes a compat smoke false negative (not a runtime behavior change).

Flags / toggles

Item Change
r_imgui Not removed. Previously registered twice under #ifdef USE_IMGUI (second call overwrote the first). Now a single Cvar_Get + description + startup log. Default remains 1.
r_studio_tools Not removed. Unchanged default 0 and registration order.
Duplicate r_imgui declarations Removed redundant tentative cvar_t *r_imgui and duplicate extern in tr_local.h (legal C merge, but confusing and error-prone).

Why safe: The second registration was the effective one at runtime; consolidating to one path preserves the same defaults, archive flags, and check ranges. The merged description combines the dockspace/F11 guidance from both prior strings.

Compat script

  • scripts/q3_openarena_compat_check.sh: cs_autoInit check now allows (ri.)?Cvar_Get because src/qcommon/csharp_debug.c uses Cvar_Get. Default is still 0; the script was matching the wrong API name.

Behavioral parity checks

  • ./scripts/compile_engine.sh vulkan (incremental): successidtech3_vulkan.so linked.
  • ctest in build-vk-Release (28 tests including smoke_test): all passed.

Candidates not changed (low confidence / out of scope)

  • Renderer cvars such as r_forwardPlus*, r_rtx*, etc. remain user-visible kill-switches or tuning knobs; no evidence they are permanently fixed on/off in tree.
  • No CMake USE_* compile options removed.
Open in Web View Automation 

cursoragent and others added 2 commits May 25, 2026 10:07
Remove duplicate tentative r_imgui definition, duplicate extern in
tr_local.h, and a second Cvar_Get block that overwrote descriptions and
re-logged startup. Single registration preserves defaults and r_studio_tools
wiring; merged cvar description documents dockspace panels and F11 toggle.

Co-authored-by: Tim Fox <timfox@outlook.com>
qcommon/csharp_debug.c registers cs_autoInit via Cvar_Get, not
ri.Cvar_Get; widen the grep so the OpenArena-style compat smoke passes.

Co-authored-by: Tim Fox <timfox@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant