Repository navigation
refactor: move GTA VI render overrides and session caches onto RenderBridge (desloppify wave 6A-1) - #120
Merged
Conversation
…Bridge (desloppify wave 6A-1) - Replace all 8 per-draw global statics (ACTIVE_SKIN_PRESET, hair/pose ACTIVE, paint PAINTED/FINISHED, meshlets BESIDE/FRAMED_WHOLE, day STUDIO) with Gta6DrawOverrides owned by RenderBridge and RAII guards (Gta6OverridesGuard, Gta6StudioGuard) used across src/photo/gta6.rs and gta6_shaded.rs. - Move all 10 render-session glue and cache statics (gta6_frame_light GLUE/SETTLED, gta6_trace GLUE, gta6_meshlets AWAITED/UNDER/DECODED, gta6_shaded KEPT, gta6_terrain KEPT, day KEPT, material_maps KEPT) onto RenderBridge sub-structs, carrying lost-effect sets cleanly across device-loss rebuilds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves
mid_level_elegance::gta6_global_side_channels(and the render/photo half ofgta6_rpf9_global_singleton_sprawl):src/render/:Gta6DrawOverrides(src/render/gta6_overrides.rs) owned byRenderBridge.gta6.overrides, with RAII guards (Gta6OverridesGuard,Gta6StudioGuard) ensuringsrc/photo/gta6.rsandsrc/photo/gta6_shaded.rsalways reset overrides on drop.gta6_frame_light,gta6_trace,gta6_meshletsAWAITED/UNDER/DECODED,gta6_shaded,gta6_terrain,day,material_maps) moved ontoRenderBridgesub-structs, carrying lost-effect sets cleanly across device-loss rebuilds.Verification
just ready: 881 tests passed in 9 binaries, 0 failed.cargo clippy -p openrage --all-targets -- -D warnings: 0 warnings.just self-check: 140/140 passed.