Redraw embedded opengl texture without redrawing entire ui #3190
-
Hi, I've embedded an opengl texture that needs to redraw every frame inside of a slint application. It seems that calling I have considered using an opengl overlay and testing if I can redraw the overlay without redrawing the ui underneath, but I figured I should ask for input before attempting this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think what you're doing is correct, calling |
Beta Was this translation helpful? Give feedback.
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).