mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Set desktop reserved threads to 1; HMD reserved threads to 2
This commit is contained in:
parent
baa586939c
commit
0f6ad43531
2 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue