Fix/frame flicking #76

Merged
boykopovar merged 3 commits from upstream-pr/76 into main 2026-09-28 10:41:13 +00:00
boykopovar commented 2026-09-28 10:39:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-28T10:39:07Z.


Summary

Fixed corrupted frames caused by guest input buffers being overwritten before GPU execution.

Cause

Draws referenced mutable guest memory. The CPU could overwrite an input buffer after the draw was recorded but before the GPU consumed it.

Detection

Instrumentation compared input-buffer contents at draw recording and GPU execution. Corrupted frames contained mismatches in buffers used by affected draws; adjacent correct frames did not.

Changes

The recorder now creates per-draw copies of read-only CPU input buffers and keeps them alive until GPU completion. Each draw uses descriptors referencing its preserved data.

Buffers with pending GPU writes remain on the existing path and are not copied from CPU memory.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4662517553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/76). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-28T10:39:07Z. --- ## Summary Fixed corrupted frames caused by guest input buffers being overwritten before GPU execution. ## Cause Draws referenced mutable guest memory. The CPU could overwrite an input buffer after the draw was recorded but before the GPU consumed it. ## Detection Instrumentation compared input-buffer contents at draw recording and GPU execution. Corrupted frames contained mismatches in buffers used by affected draws; adjacent correct frames did not. ## Changes The recorder now creates per-draw copies of read-only CPU input buffers and keeps them alive until GPU completion. Each draw uses descriptors referencing its preserved data. Buffers with pending GPU writes remain on the existing path and are not copied from CPU memory.
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
boykopovar/AnyPS5!76
No description provided.