mpv-player / mpv-examples

📚
235 stars 77 forks source link

qt_opengl resize laggy on macOS #24

Closed liberize closed 5 years ago

liberize commented 6 years ago

It's very laggy when I resize the window, almost only respond after I stop moving my mouse. Switch to new render api doesn't solve the problem. IINA is pretty smooth, they use opengl-cb as well, no idea why. Is this a qt problem or mpv problem? Tried with qt 5.11 on macOS 10.12 and 10.13.

liberize commented 6 years ago

@Akemi Can you help me?

Akemi commented 6 years ago

it's most likely a problem of that example. probably blocking the rending when resizing in some way. i never looked at the qt examples so i can't say anything specific.

liberize commented 6 years ago

I tried to wrap a NSView with QMacCocoaViewContainer and render video to the NSView, like what IINA did. The problem is gone. Obviously it's a qt problem.

ghost commented 5 years ago

Can't be helped.