From d1cbb76b6310251df2a76bf0d0d7bf4c0ace599b Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 4 Feb 2017 21:00:05 +0100 Subject: [PATCH] Only render player sprites on main thread --- src/swrenderer/scene/r_scene.cpp | 2 ++ src/swrenderer/scene/r_translucent_pass.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/swrenderer/scene/r_scene.cpp b/src/swrenderer/scene/r_scene.cpp index cdfcc8d82..18c5137df 100644 --- a/src/swrenderer/scene/r_scene.cpp +++ b/src/swrenderer/scene/r_scene.cpp @@ -48,6 +48,7 @@ #include "swrenderer/drawers/r_thread.h" #include "swrenderer/r_memory.h" #include "swrenderer/r_renderthread.h" +#include "swrenderer/things/r_playersprite.h" EXTERN_CVAR(Bool, r_shadercolormaps) EXTERN_CVAR(Int, r_clearbuffer) @@ -153,6 +154,7 @@ namespace swrenderer } RenderThreadSlices(); + MainThread()->PlayerSprites->Render(); RenderDrawQueues(); camera->renderflags = savedflags; diff --git a/src/swrenderer/scene/r_translucent_pass.cpp b/src/swrenderer/scene/r_translucent_pass.cpp index d102d6c18..d4bbb1682 100644 --- a/src/swrenderer/scene/r_translucent_pass.cpp +++ b/src/swrenderer/scene/r_translucent_pass.cpp @@ -28,7 +28,6 @@ #include "swrenderer/things/r_particle.h" #include "swrenderer/things/r_sprite.h" #include "swrenderer/things/r_wallsprite.h" -#include "swrenderer/things/r_playersprite.h" #include "swrenderer/segments/r_drawsegment.h" #include "swrenderer/scene/r_portal.h" #include "swrenderer/scene/r_translucent_pass.h" @@ -213,7 +212,5 @@ namespace swrenderer clip3d->DeleteHeights(); clip3d->fake3D = 0; } - - Thread->PlayerSprites->Render(); } }