Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Use Pixel Buffer Object for async glReadPixels - #6598

Closed
mikemorris wants to merge 2 commits into
masterfrom
pbo-read-pixels
Closed

mikemorris wants to merge 2 commits into
masterfrom
pbo-read-pixels

Conversation

@mikemorris

Copy link
Copy Markdown
Contributor

Fixes #477

I'm not sure if the GLsync fence use here is a good idea or not, would appreciate a review and needs more testing downstream before we could consider merging this. Need to add logging for why glClientWaitSync unblocked too (should warn on GL_TIMEOUT_EXPIRED or GL_WAIT_FAILED).

/cc @kkaefer @jfirebaugh

@mention-bot

Copy link
Copy Markdown

@mikemorris, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kkaefer, @jfirebaugh and @tmpsantos to be potential reviewers.

@jfirebaugh

Copy link
Copy Markdown
Contributor

I'm not clear on why this would be any better than glReadPixels without a PBO -- it's just doing manually what the API would do internally, right?

The point of an async glReadPixels is that you can do other work while the GPU is doing its thing, and this doesn't seem to accomplish that.

@mikemorris

Copy link
Copy Markdown
Contributor Author

@jfirebaugh The intention behind this work was to avoid GL pipeline stalls, I'm not too familiar on the technical details here, but there's some background discussion in #477 (comment)

until after glReadPixels has finished
@jfirebaugh jfirebaugh closed this Jan 3, 2017
@jfirebaugh
jfirebaugh deleted the pbo-read-pixels branch January 5, 2017 00:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants