Skip to content

Vulkan: consolidate outline cvar wiring; fix STANDALONE comment#56

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-d680
Draft

Vulkan: consolidate outline cvar wiring; fix STANDALONE comment#56
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-d680

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Apr 10, 2026

Summary

  • Flags removed: None. This repo does not use a centralized feature-flag registry; cvars and compile-time toggles are the main knobs. No cvar was deleted.
  • Why safe: Consolidates duplicate Cvar_Get calls for r_outline / r_outlineThreshold into a single registration in tr_init.c with the same names, defaults (0 / 0.15), and CVAR_ARCHIVE. Consumers now read the shared cvar_t pointers. Corrects a misleading #endif comment in sv_ccmds.c to match the actual #ifndef STANDALONE guard (no behavior change).
  • Behavioral parity checks: OpenGL and Vulkan Release builds via ./scripts/compile_engine.sh; ctest in build-vk-Release (17/17 passed, including smoke and unit tests).

Notes

  • Candidate for follow-up (not changed — behavior risk): USE_BANS is referenced in server sources but is not defined anywhere in CMake or headers, so file-based ban enforcement is compiled out. Enabling it would change dedicated-server behavior; needs an explicit product decision before defining it in the build.
Open in Web View Automation 

Register r_outline and r_outlineThreshold once in tr_init and reuse
globals in the post-process pipeline and PostFX param upload, removing
redundant Cvar_Get calls while preserving CVAR_ARCHIVE and defaults.

Also fix a misleading #endif comment in sv_ccmds.c (STANDALONE guard).

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