GPU: configurable write-watch range grouping with synthetic benchmarks #70
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DexNom--VIctory!70
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-70"
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?
@vascomfduarte on GitHub · 2026-11-26 05:08 UTC · original
<html>vascomfduarte:contribution/write-watch-grouping→main· +729 −1 · 3 files · 4 commits · openMotivation
The current write-watch grouping strategy uses a fixed 8 MiB gap threshold. While grouping nearby ranges reduces kernel calls, grouping widely dispersed ranges can introduce significant query amplification.
This PR introduces an optional configuration parameter to investigate that trade-off without changing the default behaviour.
Changes
Introduce
VICTORY_AHEAD_GAP_KIB, accepting values from 0 to 8192 KiB in 64 KiB increments.Preserve the existing 8192 KiB default, including fallback for invalid values.
Add synthetic tests covering write coherence and allocation lifecycle.
Add grouping and integrated shadow-buffer scaling benchmarks, with test-only kernel query instrumentation.
Document the experimental methodology, results and limitations.
Performance results
Tested against commit
64bd58fon Windows 11, Ryzen 5 5600X, RX 6700 XT (12 GB) and 32 GB RAM.Comparing 512 KiB against the existing 8192 KiB threshold:
Metric | 32 buffers | 128 buffers -- | -- | -- Geometric mean submission time reduction | 1.12% | 3.64% Geometric mean kernel query time reduction | 38.85% | 41.48% Dispersed range query volume reduction | 96.88% | 96.95%The strongest measured kernel query time reduction was 71.64%. For 128 dispersed buffers, total synthetic submission time improved by 8.27–12.74%, depending on the dirty-memory workload.
The integrated benchmark comprised 40 independent executions, 360 scenario measurements and 10,800 timed samples, with no readback or recorded kernel query failures.
Validation
Full sequential workspace suite: 708 passed, 0 failed.
GPU sequential suite after formatting: 240 passed, 0 failed.
Isolated coherence and allocation lifecycle tests: 50/50 passed across five grouping thresholds.
Workspace Clippy with
-D warnings: passed with both default and all features.Asset policy: passed.
Existing repository formatting differences preserved.
Limitations
The 512 KiB threshold is not universally optimal. Contiguous workloads showed small measured slowdowns despite identical query counts and queried volumes. The existing default is therefore unchanged.
Parallel GPU test execution exhibited intermittent failures in both the unmodified baseline and the proposed implementation. Each configuration completed 8 out of 10 runs successfully. This limited sample does not establish concurrency equivalence.
These are synthetic performance measurements, not claims of improved in-game FPS.
Full methodology, reproduction commands and detailed results are available in
docs/research/E02-write-watch-grouping.md.Additional notes
This contribution was developed with AI assistance for code implementation, experimental design, analysis and documentation. Compilation, tests and benchmarks were executed locally on physical hardware.
The PR adds only source code, synthetic tests and documentation. No proprietary assets or external runtime captures are included.
Feedback on the grouping strategy and benchmark methodology is welcome.
</html>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.