You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to render video frames from libmpv onto a Tauri window. My approach is to use glutin to create an OpenGL context directly on the WebView window.
Current Situation:
Video playback starts and renders correctly.
However, as soon as I try to resize the window, the entire window content starts to flicker.
What is the correct way to manage an OpenGL surface with glutin on a Tauri window to avoid this flickering during resize? Is there a specific way I need to handle surface recreation or synchronize with Tauri's event loop?
Any help or guidance would be greatly appreciated. Thank you!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm trying to render video frames from libmpv onto a Tauri window. My approach is to use glutin to create an OpenGL context directly on the WebView window.
Current Situation:
Video playback starts and renders correctly.
However, as soon as I try to resize the window, the entire window content starts to flicker.
You can see a screen recording of the issue here:
2025-09-29.mp4
Example:
https://github.com/nini22P/tauri-libmpv-render-test
Question:
What is the correct way to manage an OpenGL surface with glutin on a Tauri window to avoid this flickering during resize? Is there a specific way I need to handle surface recreation or synchronize with Tauri's event loop?
Any help or guidance would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions