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
+9 -1
View File
@@ -113,6 +113,9 @@ public:
return QThread::idealThreadCount();
}
public slots:
void SetAggressiveGarbageCollection(bool enabled);
signals:
private:
@@ -130,7 +133,12 @@ private:
ShaderCache* shader_cache_;
static constexpr auto kDecoderMaximumInactivity = 10000;
static constexpr auto kDecoderMaximumInactivityAggressive = 1000;
static constexpr auto kDecoderMaximumInactivity = 5000;
int aggressive_gc_;
QTimer *decoder_clear_timer_;
private slots:
void ClearOldDecoders();