Skip to content

refactor: group viewport/bridge state bags and decouple meta/shader boot order (desloppify wave 5D-1) - #113

Merged
leonidarider merged 1 commit into
mainfrom
agent/desloppify-w5d1
Dec 3, 2026
Merged

leonidarider merged 1 commit into
mainfrom
agent/desloppify-w5d1

Conversation

@leonidarider

Copy link
Copy Markdown
Contributor

Summary

Resolves 3 desloppify review items (wave 5D-1):

  • abstraction_fitness::viewport_render_bridge_monolithic_state_bags: Grouped RenderBridge (56 -> 11 fields) into pipeline-owned sub-structs (FrameState, DocumentMeshCache, GameSceneCache, Gta6MeshletState, DressedPedGpu, ParticleGpuCache, PhotoCaptureState) in src/render/viewport/state.rs and ViewportRenderer (59 -> 14 fields) into cohesive sub-structs (ViewportTargets, CameraUniformGpu, LineOverlayGpu, PlainPipelines, Gta6GpuState, DeferredResources with named DeferredPipelines, SceneLighting, EnvironmentState, ParticleGpuState, SkinningState) in crates/runtime/or-renderer/src/viewport/state.rs.
  • initialization_coupling::meta_schema_and_parser_names_boot_order: Consolidated metadata host initialization into or_title::schema::init_meta_host so ragepar_names::load_from, install_names_snapshot, and install_snapshot execute in guaranteed order inside one Once for GUI, --photo/--self-check, and CLI; split TITLE_INDEX/TITLE_PUBLIC_INDEX in hash_index.rs and removed the GUI-only src/main.rs ordering call.
  • initialization_coupling::shader_cache_and_hardware_flag_boot_order: Deleted global DRAWN_BY_HARDWARE / drawn_by_hardware and plumbed hardware: bool explicitly through rdna_bind::shading, or-cli, gta6_shaders, gta6_frame_light, and RenderBridge::with_hardware_adapter; replaced silent-ignore OnceLock caches in kept.rs and kept_dx12.rs with reconfigurable stores and unit tests.

Verification

  • just ready: 3,424 tests passed in 306 binaries, 0 regressions, 0 new clippy warnings (only the 4 pre-existing origin/main failures: gta6_hair.rs:411, gta6_meshlets.rs shell_budget, i18n::gates, and the_world_verbs_answer_for_gta5_through_its_title).
  • New unit tests in or-title, or-shader-front, or-renderer, and openrage all passed.
  • just self-check: 140/140 passed.
  • Pre-commit hook (fmt, encoding, provenance): clean.

…oot order (desloppify wave 5D-1)

- Group RenderBridge (56 -> 11 fields) and ViewportRenderer (59 -> 14 fields)
  into cohesive pipeline-owned sub-structs in src/render/viewport/state.rs and
  crates/runtime/or-renderer/src/viewport/state.rs, replacing the raw 4-tuple
  deferred_pipelines with named DeferredPipelines.
- Consolidate metadata host bootstrap into or_title::schema::init_meta_host so
  ragepar_names::load_from, install_names_snapshot, and install_snapshot run in
  guaranteed order inside a single Once for GUI, photo/self-check, and CLI;
  split TITLE_INDEX/TITLE_PUBLIC_INDEX in hash_index.rs and remove the GUI-only
  src/main.rs ordering call.
- Eliminate global DRAWN_BY_HARDWARE / drawn_by_hardware in favor of explicit
  hardware: bool plumbing through rdna_bind::shading, or-cli, gta6_shaders,
  gta6_frame_light, and RenderBridge::with_hardware_adapter; replace
  silent-ignore OnceLock caches in kept.rs and kept_dx12.rs with reconfigurable
  stores and regression tests.
@leonidarider
leonidarider merged commit 7a174c5 into main Dec 3, 2026
1 check failed
@leonidarider
leonidarider deleted the agent/desloppify-w5d1 branch December 3, 2026 00:08
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