Move the present queue into its own host module #5064

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/5064 into main
andrewpozdnakov7-jpg commented 2026-12-01 18:45:59 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T18:45:59Z.


Refs #5010.

What it changes

host.rs on main is 1,064,517 bytes. The asset policy allows 1,048,576 bytes per source file, so staged changes to that file currently fail the check.

Move the existing inline present_aside module to host/present_aside.rs. The module still has the same name, parent, visibility and contents apart from indentation. host.rs is 1,038,138 bytes after the move.

How it was tested

  • On 440ae0cc, verified that the staged module matched the previous inline body after removing one level of indentation. The only change to the rest of host.rs was its module declaration.

  • Windows cargo check --locked -p victory-gpu, cargo xtask policy --staged for both files, and git diff --check passed. No GPU or game run was needed for the move.

  • CI check stops at Clippy findings in the unchanged victory-shader files lds_batch.rs and oracle64.rs.

Checked for overlap

  • Searched open issues and pull requests for the host source size limit and module extraction. #1988 and #2201 touch the inline presentation code. Any remaining changes inside the module from those branches would go in the new file.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding this change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5592227430 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5064). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-12-01T18:45:59Z. --- Refs #5010. ## What it changes `host.rs` on main is 1,064,517 bytes. The asset policy allows 1,048,576 bytes per source file, so staged changes to that file currently fail the check. Move the existing inline `present_aside` module to `host/present_aside.rs`. The module still has the same name, parent, visibility and contents apart from indentation. `host.rs` is 1,038,138 bytes after the move. ## How it was tested - On `440ae0cc`, verified that the staged module matched the previous inline body after removing one level of indentation. The only change to the rest of `host.rs` was its module declaration. - Windows `cargo check --locked -p victory-gpu`, `cargo xtask policy --staged` for both files, and `git diff --check` passed. No GPU or game run was needed for the move. - [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46718570038/job/142897354616) stops at Clippy findings in the unchanged `victory-shader` files `lds_batch.rs` and `oracle64.rs`. ## Checked for overlap - [x] Searched open issues and pull requests for the host source size limit and module extraction. #1988 and #2201 touch the inline presentation code. Any remaining changes inside the module from those branches would go in the new file. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding this change into another commit. AI-assisted with OpenAI Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/5064:upstream-pr/5064'
git switch 'upstream-pr/5064'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/5064'
git switch 'upstream-pr/5064'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5064'
git switch 'upstream-pr/5064'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5064'
git switch 'main'
git merge --squash 'upstream-pr/5064'
git switch 'main'
git merge --ff-only 'upstream-pr/5064'
git switch 'main'
git merge 'upstream-pr/5064'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!5064
No description provided.