mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- 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:
parent
8976813fe1
commit
8d84bc2599
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue