diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-07-31 14:59:37 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-10-03 13:04:41 +0000 |
commit | 01ade488ddf6dc667f38173ba3b2330224761f45 (patch) | |
tree | 51fd7f0eac2d633ece35e98df3b43fe11e377336 /configure | |
parent | a154ea89e8ae4113f2dd63eb96864c9182f2c459 (diff) |
macOS: Don't call [NSOpenGLContext update] for every frame
Calling update has a cost, and should only be done when the drawable
object changes size or location. Instead of calling update each time
makeCurrent is called, we listen for the appropriate notifications,
limiting the number of update calls significantly.
We still call update on the thread owning the QOpenGLContext, which
is not ideal, as [NSOpenGLContext update] should only be called on
the main thread, but in practice this works. Getting out of this
situation is tricky, and setView has in theory the same problems.
Until those problems have been solved we keep the behavior as is.
Task-number: QTBUG-63572
Change-Id: Ibac9f8be7843f2aa006af6f7ee670bf027122440
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions