Repository navigation
macOS: harden shader lowering, resource synchronization, and runtime setup - #671
0b101010-lab wants to merge 1 commit into
Conversation
Preserve upstream mesh layout, SCC analysis, descriptor batching and CrossOver release handling while integrating the guarded shader, resource synchronization, diagnostics and toolkit recovery changes. Cover multiple bounded relative moves, recomputed publication facts, caller-relative toolkit paths and diagnostic output destinations.
|
Thank you for the work and for the honest account of where it stands. I am closing this one because it is a single change of 14,000 lines in 69 files (mesh layout, SCC proofs, descriptor batching, ambient light, README, toolkit setup and more), and I cannot review, test or revert any one part of it on its own. Several parts also overlap PRs that merged today (#593, #605, #591, #589, #667), so a rebase would need real decisions. Please send it as separate small pull requests, one change each, with what it fixes, a test, and an opt-in switch where it changes behaviour. Start with the part you think matters most for the 2 FPS picture. The README screenshot cannot be committed either: the asset policy keeps pictures out of the tree (they go in a comment on #50). |
This change improves shader translation, resource synchronization and toolkit setup on the existing macOS D3D12/D3DMetal path. It preserves current main's mesh layout planner, SCC proof, descriptor batching and CrossOver release handling.
We were able to reach the game and control the character in local testing. That earlier run used
VICTORY_FAULT_TRACKING=1and D3DMetal 4.0 beta 1, lasted 13 minutes 50 seconds, and ended when we closed the window, with no newly appended crash-log bytes. Fault tracking remains opt-in under Wine/macOS.On this integrated build with D3DMetal 4.0 beta 3, we observed substantially better rendering. The indoor scene and character are visible, but rectangular artifacts and blur remain, at about 2 FPS. Logs show 56 rejected compute shaders and hundreds of skipped operations per frame. Rendering correctness, acceptable performance and long-term stability remain unfinished; the combined source integration and runtime upgrade do not isolate which change produced the improvement.
Screenshot
D3DMetal 4.0 beta 3, 28 November 2026: 2 FPS, with visible rectangular artifacts and blur.
Changes
VICTORY_BVH_BUILDER=1; otherwise default to estimated ambient light and skip resolve passes. Explicit lighting overrides remain available. This default behavior change warrants maintainer review.This does not implement a native Metal backend. Game files, generated title shaders, captures and Apple redistributables are excluded from the repository.
Validation
-D warnings, default and all features: passed.enhanced_barriers_supported_and_command_list7_availableand the threenarrow_clamp_sync_*tests.