From de2df926e104979db028100ee0483f4f8f48d3bf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 5 Apr 2021 11:54:28 +0200 Subject: [PATCH] - fixed render timing. --- source/core/rendering/scene/hw_bunchdrawer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/core/rendering/scene/hw_bunchdrawer.cpp b/source/core/rendering/scene/hw_bunchdrawer.cpp index f1323c4f2..86f2985d2 100644 --- a/source/core/rendering/scene/hw_bunchdrawer.cpp +++ b/source/core/rendering/scene/hw_bunchdrawer.cpp @@ -232,6 +232,8 @@ void BunchDrawer::ProcessBunch(int bnch) //if (gl_render_walls) { + ClipWall.Unclock(); + Bsp.Unclock(); SetupWall.Clock(); HWWall hwwall; @@ -239,6 +241,8 @@ void BunchDrawer::ProcessBunch(int bnch) rendered_lines++; SetupWall.Unclock(); + Bsp.Clock(); + ClipWall.Clock(); } } @@ -462,7 +466,6 @@ void BunchDrawer::ProcessSector(int sectnum) HWFlat flat; flat.ProcessSector(di, §or[sectnum]); SetupFlat.Unclock(); - Bsp.Clock(); //Todo: process subsectors inbunch = false; @@ -508,7 +511,6 @@ void BunchDrawer::ProcessSector(int sectnum) } if (thiswall->point2 != sect->wallptr + i + 1) inbunch = false; } - Bsp.Unclock(); } //========================================================================== @@ -519,6 +521,7 @@ void BunchDrawer::ProcessSector(int sectnum) void BunchDrawer::RenderScene(const int* viewsectors, unsigned sectcount) { + Bsp.Clock(); for(unsigned i=0;i 0) @@ -527,4 +530,5 @@ void BunchDrawer::RenderScene(const int* viewsectors, unsigned sectcount) ProcessBunch(closest); DeleteBunch(closest); } + Bsp.Unclock(); }