- 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%.
This commit is contained in:
Christoph Oelckers 2022-01-13 19:46:04 +01:00
parent 8976813fe1
commit 8d84bc2599

View file

@ -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;
}