Document when the constants port and 4 KiB guard pages help #560

Open
tavochivix wants to merge 1 commit from upstream-pr/560 into main
tavochivix commented 2026-12-03 12:03:25 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by tavochivix on 2026-12-03T12:03:25Z.


The current switch table describes a 12 GB card where accessing the constants heap in system memory made frames slower. In #532, a Ryzen 7 5700X and RTX 4070 SUPER did less CPU copy work and gained FPS in CPU-limited free play. The updated entry gives both measurements so readers can decide which configuration to test.

The second entry shows how to enable 4 KiB guard-page tracking in the launcher. On a Ryzen 5 5600X and RTX 5070 Ti, it reduced refresh copies from 108 to 29 MiB per frame in matched bridge intervals with the constants port off. Four further runs of the same opening sequence on unmodified main (7dbcdcb) averaged 22.39 FPS with default tracking and 25.06 FPS with 4 KiB tracking (+11.9%). Measurements and test conditions

Both options already exist in the default branch and are off by default. The two edits are in the README switch table.

Checked the option names and defaults against the public source, the launcher syntax against the existing examples, and the numbers against the linked measurements.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:5626091248 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/560). Originally posted by [tavochivix](https://github.com/tavochivix) on 2026-12-03T12:03:25Z. --- The current switch table describes a 12 GB card where accessing the constants heap in system memory made frames slower. In [#532](https://github.com/readmet3xt-lab/foxhound/issues/532), a Ryzen 7 5700X and RTX 4070 SUPER did less CPU copy work and gained FPS in CPU-limited free play. The updated entry gives both measurements so readers can decide which configuration to test. The second entry shows how to enable 4 KiB guard-page tracking in the launcher. On a Ryzen 5 5600X and RTX 5070 Ti, it reduced refresh copies from 108 to 29 MiB per frame in matched bridge intervals with the constants port off. Four further runs of the same opening sequence on unmodified `main` (`7dbcdcb`) averaged 22.39 FPS with default tracking and 25.06 FPS with 4 KiB tracking (+11.9%). [Measurements and test conditions](https://github.com/readmet3xt-lab/foxhound/issues/532#issuecomment-7377219128) Both options already exist in the default branch and are off by default. The two edits are in the README switch table. Checked the option names and defaults against the public source, the launcher syntax against the existing examples, and the numbers against the linked measurements.
BrenoMazini commented 2026-12-03 12:53:27 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T12:53:27Z.


Thanks for writing this up. One request on the VICTORY_PORT_CONSTANTS entry: please drop the sentence "In CPU-limited free play on a Ryzen 7 5700X and RTX 4070 SUPER, median FPS rose from 13.0 to 17.8."

That figure comes from my report in #532, and it doesn't hold up. In a controlled run on that PC, with the configurations alternated, the port alone gives about the same frame rate as the defaults. The limit moves from the processor to the card, as on your machine. I'm preparing a full set of runs with numbers, including GUARD_PAGES=1, and will post them in #532.

The GUARD_PAGES entry and the rest of the change look right to me.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7378995761 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/560#issuecomment-7378995761). Originally posted by [BrenoMazini](https://github.com/BrenoMazini) on 2026-12-03T12:53:27Z. --- Thanks for writing this up. One request on the `VICTORY_PORT_CONSTANTS` entry: please drop the sentence "In CPU-limited free play on a Ryzen 7 5700X and RTX 4070 SUPER, median FPS rose from 13.0 to 17.8." That figure comes from my report in #532, and it doesn't hold up. In a controlled run on that PC, with the configurations alternated, the port alone gives about the same frame rate as the defaults. The limit moves from the processor to the card, as on your machine. I'm preparing a full set of runs with numbers, including `GUARD_PAGES=1`, and will post them in #532. The `GUARD_PAGES` entry and the rest of the change look right to me.
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/560:upstream-pr/560'
git switch 'upstream-pr/560'

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/560'
git switch 'upstream-pr/560'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/560'
git switch 'upstream-pr/560'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/560'
git switch 'main'
git merge --squash 'upstream-pr/560'
git switch 'main'
git merge --ff-only 'upstream-pr/560'
git switch 'main'
git merge 'upstream-pr/560'
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
readmet3xt-lab/foxhound!560
No description provided.