Hacker News new | ask | show | jobs
by exDM69 736 days ago
It is possible but managing asynchronous transfers in OpenGL is quite tricky.

You either need to use OpenGL sync objects very carefully or accept the risk of unintended GPU stalls.

1 comments

Yeah you need to make sure the upload has completed before you try and use the texture, right?
Yes, and you need to make sure that the upload has completed before you reuse the pixel buffer too.

And the synchronization API isn't very awesome, it can only wait for all operations until a certain point have been completed. You can't easily track individual transfers.