graphics: read back GPU-written linear images by default #1471
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1471
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1471/head"
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?
@overlordxrz-source on GitHub · 2026-10-13 06:41 UTC · original
overlordxrz-source:gta-readback-linear-default→main· +4 −4 · 3 files · 1 commits · closed without mergingFixes the GTA V car damage bug in #971 and #888: after a light crash the wheels end up outside the body and the car can't drive.
Port of TheCruZ's fork commit bab7c3207 (author kept), under his OK on #1241. He confirmed on #971 that
--readback-linear-imagesfixes it.GTA V (PPSA04263) keeps each vehicle's deformation in a 128x128 R8G8B8A8_SNORM linear render target from a reused memory pool. The CPU reads it back to place the wheels. Without readback, the CPU reads stale pool memory as damage. This makes readback the default;
--readback-linear-images falseturns it off. TheCruZ measured about 110 images (30 MiB) per second while driving around Los Santos, costing about 0.35 ms of GPU-thread time per 10 s.Testing: GTA testers were asked on #829 to compare main against this PR's build (crash a car lightly, then check the wheels and fps at the same spot).
AI-assisted: yes (porting and PR text)
@coderabbitai[bot] on GitHub · 2026-10-13 06:44 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
69f08cc8-9811-4144-a2d6-c68bb430ad92📥 Commits
Reviewing files that changed from the base of the PR and between
df5b9b92beandffab9bdc6b.📒 Files selected for processing (3)
src/common/emulatorConfig.hsrc/launcher/include/configuration.hsrc/main.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
The
readback_linear_imagesdefault is nowtruein both configuration declarations. The--readback-linear-imageshelp text now states that the default istrue. Option parsing is unchanged.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
ffab9Readback is enabled by default as intended, and users can still opt out with the existing option. No concrete merge-blocking issue is evident.
Pre-merge checks ·
4 ·
1
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@Nmzik on GitHub · 2026-10-21 18:59 UTC · original
We wont make it auto default (it will regress perf in some games)
Pull request closed