Skip to content

Redraw embedded opengl texture without redrawing entire ui #3190

Answered by tronical
AlexanderHarrison asked this question in Q&A
Discussion options

You must be logged in to vote

I think what you're doing is correct, calling request_redraw(). It's true that right now ever frame with OpenGL is rendered from scratch. There are two extensions that we could use to improve on this (buffer age and swap with damage), and we should. When that's implemented, request_redraw() will automatically only redraw what changed (your texture).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tronical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants