gstreamer/gst-libs/gst/gl/cocoa
Julien Isorce 0ad168a258 gl/cocoa: reduce custom main loop latency
This fix a very slow rendering rate regression that only
happens when using gst-launch, i.e. in the case where
the main thread does not run any NSApp loop.

Git bisect reported it has been introduced by the commit
e10d2417e2:
"move to CGL and CAOpenGLLayer for rendering".

Then the commit 7d46357627:
"gstglwindow_cocoa: fix slow render rate" attempted to fix
the slow rendering rate problem when using gst-launch.

At least for me it does not work. I tried several
combinations, for example to flush CA transactions in the
custom app loop, as mentioned in the doc, but the only solution
that fixes the slow rendering is by reducing the loop latency.
From what I tested, no need to put less than 60ms, even if the
framerate has an interval much lower (16.6ms for 60 fps).
2017-12-09 19:31:55 +00:00
..
gstgl_cocoa_private.h gl/cocoa: don't deadlock if the dispatch_sync is called from the main thread 2017-12-09 19:31:55 +00:00
gstglcaopengllayer.h gl/calayer: only start drawing if the parent gl context is ready 2017-12-09 19:31:54 +00:00
gstglcaopengllayer.m gl/calayer: only start drawing if the parent gl context is ready 2017-12-09 19:31:54 +00:00
gstglcontext_cocoa.h gl/cocoa: move to CGL and CAOpenGLLayer for rendering 2017-12-09 19:31:53 +00:00
gstglcontext_cocoa.m gl/cocoa: reduce custom main loop latency 2017-12-09 19:31:55 +00:00
gstglwindow_cocoa.h glwindow: remove width/height from _draw() 2017-12-09 19:31:53 +00:00
gstglwindow_cocoa.m gl/cocoa: don't deadlock if the dispatch_sync is called from the main thread 2017-12-09 19:31:55 +00:00
Makefile.am cgl: install the gl context and gl layer headers 2017-12-09 19:31:53 +00:00