WIP: perf(host): narrow write tracking for streamed decoder output #1597
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!1597
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:perf/streamed-decode-write-marks"
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?
Type: perf · Risk: medium · Tested on: CachyOS Linux, Ryzen 9 7900X, 32 GiB, GeForce RTX 3090, NVIDIA 620.70.06
TL;DR
Reduce the guest memory that must be marked after streaming an asset. Header and checksum steps can avoid marking a large unused output buffer.
Why and what changed
Track the frame block limit on stream setup and use the decoder’s next-input type to identify operations that may write output. Successful block calls include literal scratch space and over-copy slack. An error retains conservative tracking of the potentially written output. Prefilled staging uses the maximum block bound.
Measurements
The changed host code ran in the headless Market and Field builds. It was present on both sides of subsequent capture comparisons, so their FPS numbers do not isolate this change. The added decoder fixture checks output write marks separately from frame timing.
Testing
Test coverage includes a short output room, checksum errors, staged input and writes outside the returned byte count. Matched gameplay throughput and playthroughs on other hosts are still outstanding.
Risks and remaining work
Under-marking scratch or partly written output could leave a later GPU capture stale. Decode correctness, including failures after partial output, is the main review target.
Checklist
876dc360. Measurements were taken before the cold-install packaging change on that revision.Tested in game: Linux, Ryzen 9 7900X, RTX 3090, NVIDIA 620.70.06. The decoder ran in the headless test binaries that loaded Market and Hyrule Field, including the physical crossing. These runs do not isolate its effect on FPS.
9fc3d261321a30c65123Corrected author and committer attribution to HumanBean. Verified identical file contents before and after the metadata change.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.