Browse Source

OpenGLContext: Use high-priority thread for OpenGL renderer to smooth animations on M1 machines

v6.1.6
reuk 3 years ago
parent
commit
e97f7d1c6c
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_opengl/opengl/juce_OpenGLContext.cpp

+ 2
- 1
modules/juce_opengl/opengl/juce_OpenGLContext.cpp View File

@@ -117,7 +117,8 @@ public:
{ {
if (nativeContext != nullptr) if (nativeContext != nullptr)
{ {
renderThread.reset (new ThreadPool (1));
renderThread = std::make_unique<ThreadPool> (1);
renderThread->setThreadPriorities (9);
resume(); resume();
} }
} }


Loading…
Cancel
Save