Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render: Flush draws before updating bitmap texture #19066

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Dec 25, 2024

This fixes an issue where new draws were drawn over an old GPU buffer. For instance, consider the following scenario:

1. draw (GPU)
2. full fill (CPU)
3. draw (GPU)

When full fill is executed, the GPU buffer is discarded without a sync, but we have to make sure we wait for any queued draws in order to truly discard 1.

Thank you @Dinnerbone for providing the fix!

kjarosh and others added 2 commits December 26, 2024 00:24
This fixes an issue where new draws were drawn over an old GPU buffer.
For instance, consider the following scenario:

    1. draw (GPU)
    2. full fill (CPU)
    3. draw (GPU)

When full fill is executed, the GPU buffer is discarded without a sync,
but we have to make sure we wait for any queued draws in order to
truly discard 1.

Co-authored-by: Nathan Adams <dinnerbone@dinnerbone.com>
@kjarosh kjarosh added A-rendering Area: Rendering & Graphics T-fix Type: Bug fix (in something that's supposed to work already) labels Dec 25, 2024
@torokati44
Copy link
Member

Is this perhaps related to the regressions caused by #15032?

@torokati44 torokati44 merged commit 05c1576 into ruffle-rs:master Dec 26, 2024
22 checks passed
@kjarosh kjarosh deleted the bitmap-draw-sync branch December 26, 2024 10:27
@kjarosh
Copy link
Member Author

kjarosh commented Dec 26, 2024

Is this perhaps related to the regressions caused by #15032?

Yes, it is!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rendering Area: Rendering & Graphics T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Text display overlaps in https://www.maxgames.com/play/robot-wants-kitty.html
3 participants