Set desktop reserved threads to 1; HMD reserved threads to 2

This commit is contained in:
Simon Walton 2019-08-06 15:34:13 -07:00
parent baa586939c
commit 0f6ad43531
2 changed files with 4 additions and 1 deletions

View file

@ -78,7 +78,8 @@ public:
void setVsyncEnabled(bool vsyncEnabled) { _vsyncEnabled = vsyncEnabled; }
bool isVsyncEnabled() const { return _vsyncEnabled; }
// Three threads, one for rendering, one for texture transfers, one reserved for the GL driver
int getRequiredThreadCount() const override { return 3; }
// Drop to one reserved for better other-task performance in desktop
int getRequiredThreadCount() const override { return 1; }
virtual std::function<void(gpu::Batch&, const gpu::TexturePointer&)> getHUDOperator() override;
void copyTextureToQuickFramebuffer(NetworkTexturePointer source,

View file

@ -38,6 +38,8 @@ public:
virtual StencilMaskMode getStencilMaskMode() const override { return StencilMaskMode::MESH; }
virtual StencilMaskMeshOperator getStencilMaskMeshOperator() override;
// Attempt to reserve two threads.
int getRequiredThreadCount() const override { return 2; }
protected:
void customizeContext() override;