OCSC: optimizing command stream compiler (off by default, unmeasured) #19
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Fayberr/Victory-United. Originally posted by Fayberr on 2026-12-01T05:52:06Z.
Adds an optimizing compiler between the recorded list calls (VICTORY_THIN) and their translation: dead and redundant state sets are left out, runs of root constants become one call, plus an adaptive sequence cache and a sharded work queue for the translation threads. All of it is off by default (
VICTORY_OCSC,_CACHE,_SCHED,_PASSES,_VERIFY).Not run in the game yet: built and tested without the test PC. The pure logic lives in the new crate
victory-ocscand is checked by unit tests, a differential fuzz test against an independent state model (mutation-checked), and queue stress tests. See docs/ocsc.md; benchmark script is scripts/benchmark-ocsc.ps1.Does not touch memory placement or the VRAM-first code.
Imported from Fayberr/Victory-United. Originally posted by chatgpt-codex-connector[bot] on 2026-12-01T05:52:17Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
ae7332cℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from Fayberr/Victory-United. Originally posted by chatgpt-codex-connector[bot] on 2026-12-01T05:55:02Z.
Code review location:
crates/victory-ocsc/src/compile.rs; line 761With OCSC enabled, a rectangle draw using the CPU expansion fallback followed by a normal draw that rebinds the same vertex view can read the expanded scratch buffer instead of the title's buffer.
State::rectanglesincrates/victory-gpu/src/draw.rsreplaces the host vertex bindings without clearinghost_vb_valid; normally, the subsequentState::set_vertex_buffersclears that flag soprepare_pipelinerestores the original bindings. Dropping that setter here leaves the flag valid, and if the pipeline's vertex-slot mask and list epoch are unchanged, restoration is skipped. Preserve these calls across draws that can replace host vertex bindings, or invalidate the host binding cache when expansion does so. The reference model only tracks logical vertex views, so verification does not catch this difference.Useful? React with 👍 / 👎.
Imported from Fayberr/Victory-United. Originally posted by chatgpt-codex-connector[bot] on 2026-12-01T05:55:02Z.
Review: COMMENTED
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
ae7332cb75ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.