From 8d84bc25995d7552cedb9f2693bdc535e6a4f1ed Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 13 Jan 2022 19:46:04 +0100 Subject: [PATCH] - disable window clipping entirely in outside areas. This is a first grade performance killer on large maps and doesn't offer much in clipping robustness. On maps like Clear the Coast or Wpudrichem omitting this check reduces map traversal time by 40%. --- source/core/rendering/scene/hw_bunchdrawer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/rendering/scene/hw_bunchdrawer.cpp b/source/core/rendering/scene/hw_bunchdrawer.cpp index d07164c64..0dbaae0f2 100644 --- a/source/core/rendering/scene/hw_bunchdrawer.cpp +++ b/source/core/rendering/scene/hw_bunchdrawer.cpp @@ -180,7 +180,7 @@ bool BunchDrawer::CheckClip(walltype* wal, float* topclip, float* bottomclip) if (frontsector->ceilingstat & backsector->ceilingstat & CSTAT_SECTOR_SKY) { // save some processing with outside areas - no need to add to the clipper if back sector is higher. - if (fs_ceilingheight1 <= bs_floorheight1 && fs_ceilingheight2 <= bs_floorheight2) *bottomclip = -FLT_MAX; + /*if (fs_ceilingheight1 <= bs_floorheight1 && fs_ceilingheight2 <= bs_floorheight2)*/ *bottomclip = -FLT_MAX; *topclip = FLT_MAX; return false; }