- allow drawer queues to run immediately to improve r_scene_multithreaded performance

- removed unused pass ranges in DrawerThread
This commit is contained in:
Magnus Norddahl 2017-03-14 23:03:14 +01:00
commit 3838ec3edc
7 changed files with 92 additions and 206 deletions

View file

@ -78,7 +78,9 @@ void PolyRenderer::RenderView(player_t *player)
Thread.DrawQueue->Push<ApplySpecialColormapRGBACommand>(cameraLight->ShaderColormap(), screen);
}
DrawerThreads::Execute({ Thread.DrawQueue });
DrawerThreads::Execute(Thread.DrawQueue);
DrawerThreads::WaitForWorkers();
Thread.DrawQueue->Clear();
}
void PolyRenderer::RenderViewToCanvas(AActor *actor, DCanvas *canvas, int x, int y, int width, int height, bool dontmaplines)
@ -98,7 +100,8 @@ void PolyRenderer::RenderViewToCanvas(AActor *actor, DCanvas *canvas, int x, int
canvas->Lock(true);
RenderActorView(actor, dontmaplines);
DrawerThreads::Execute({ Thread.DrawQueue });
DrawerThreads::Execute(Thread.DrawQueue);
DrawerThreads::WaitForWorkers();
canvas->Unlock();