render: use single base thread for rendering

This commit is contained in:
itsmattkc
2022-06-21 14:08:29 -07:00
parent de31f3351a
commit 3f8001b146
5 changed files with 44 additions and 10 deletions
+4
View File
@@ -44,6 +44,8 @@ bool RenderTask::Render(ColorManager* manager,
const QMatrix4x4 &force_matrix, VideoParams::Format force_format,
ColorProcessorPtr force_color_output)
{
QMetaObject::invokeMethod(RenderManager::instance(), "SetAggressiveGarbageCollection", Q_ARG(bool, true));
// Run watchers in another thread so they can accept signals even while this thread is blocked
QThread watcher_thread;
watcher_thread.start();
@@ -236,6 +238,8 @@ bool RenderTask::Render(ColorManager* manager,
watcher_thread.quit();
watcher_thread.wait();
QMetaObject::invokeMethod(RenderManager::instance(), "SetAggressiveGarbageCollection", Q_ARG(bool, false));
return result;
}