- allow drawer queues to run immediately to improve r_scene_multithreaded performance
- removed unused pass ranges in DrawerThread
This commit is contained in:
parent
6926875b21
commit
3838ec3edc
7 changed files with 92 additions and 206 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue