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

OnAcceleratedPaint seems to be called before the buffer is rendered to #4

Closed
blattersturm opened this issue Mar 6, 2018 · 4 comments

Comments

@blattersturm
Copy link

blattersturm commented Mar 6, 2018

We currently have logic in our application that assumes the shared texture is copyable using CopySubresourceRegion at the time the browser signals an event (in this case, OnAcceleratedPaint).

However, even if we remove all dirty rectangle logic from our application and copy the full buffer (CopyResource) from the main game thread, it appears the last view change (e.g. keyboard input in a <input> element) hasn't rendered to the shared texture yet in all cases that OnAcceleratedPaint was called.

I don't see any immediate workaround either other than swapping the buffer any time the keyed mutex is able to be acquired, and not just when signaled by CEF.

@wesselsga
Copy link
Contributor

Hmm, you're absolutely right. I'll be looking into it now.

@wesselsga
Copy link
Contributor

This issue should be resolved. I updated both the cef pull request and the x64 sample binary distribution.

@wesselsga
Copy link
Contributor

wesselsga commented Mar 8, 2018

Isaac Richards (on bitbucket) has identified another updating issue with my initial fix. Working with his fix now to update the pull request.

@wesselsga wesselsga reopened this Mar 8, 2018
@wesselsga
Copy link
Contributor

Pull request + sample distribution was updated again with fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants