Skip to content

Remove stale renderer compile toggles (PATCH_STITCHING, USE_FOG_COLLAPSE)#194

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

Remove stale renderer compile toggles (PATCH_STITCHING, USE_FOG_COLLAPSE)#194
cursor[bot] wants to merge 1 commit intomainfrom
cursor/feature-flag-cleanup-b321

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 6, 2026

Summary

Removes two preprocessor-only toggles that were always enabled for normal engine builds and only hid alternate (unused) code paths.

Flags removed

Macro Why safe to delete
PATCH_STITCHING Defined unconditionally in both tr_local.h files for OpenGL and Vulkan renderers. The #else branches (non-stitching allocation via Hunk_Alloc) were never compiled in shipped configurations.
USE_FOG_COLLAPSE Defined unconditionally in Vulkan tr_local.h. OpenGL never used this symbol; Vulkan fog-collapse logic is the only supported path.

Behavioral parity

  • Vulkan: ./scripts/compile_engine.sh vulkan (Release) succeeded.
  • OpenGL: ./scripts/compile_engine.sh opengl (Release) succeeded.
  • Tests: ctest in build-vk-Release: 26/26 passed (smoke, renderer checks, unit tests).

No CMake options or runtime cvars were removed; this is compile-time dead-branch cleanup only.

Open in Web View Automation 

…LAPSE

Both macros were unconditionally defined for shipped builds; guarded code
was dead alternate paths. Unfold to the active behavior only.

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