mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- enable r_scene_multithreaded
This commit is contained in:
parent
80f9c81e36
commit
366d1637ce
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@
|
||||||
EXTERN_CVAR(Bool, r_shadercolormaps)
|
EXTERN_CVAR(Bool, r_shadercolormaps)
|
||||||
EXTERN_CVAR(Int, r_clearbuffer)
|
EXTERN_CVAR(Int, r_clearbuffer)
|
||||||
|
|
||||||
CVAR(Bool, r_scene_multithreaded, false, 0);
|
CVAR(Bool, r_scene_multithreaded, true, 0);
|
||||||
|
|
||||||
namespace swrenderer
|
namespace swrenderer
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,7 @@ namespace swrenderer
|
||||||
if (numThreads == 0)
|
if (numThreads == 0)
|
||||||
numThreads = 4;
|
numThreads = 4;
|
||||||
|
|
||||||
if (!r_scene_multithreaded)
|
if (!r_scene_multithreaded || !r_multithreaded)
|
||||||
numThreads = 1;
|
numThreads = 1;
|
||||||
|
|
||||||
if (numThreads != (int)Threads.size())
|
if (numThreads != (int)Threads.size())
|
||||||
|
|
Loading…
Reference in a new issue