- some Transfer_Heights related optimizations.

* only call hw_CheckViewArea if the result is not known yet.
* check the map up front if it even contains heightsecs. This allows to shortcut the above check entirely for maps without sector transfers and will allow further optimizations.
This commit is contained in:
Christoph Oelckers 2018-05-01 09:02:24 +02:00
commit 3c49804c6c
7 changed files with 12 additions and 7 deletions

View file

@ -1343,6 +1343,7 @@ void P_SpawnSpecials (void)
case Transfer_Heights:
{
sec = line.frontsector;
if (line.args[1] & 2)
{
sec->MoreFlags |= SECF_FAKEFLOORONLY;
@ -1363,6 +1364,7 @@ void P_SpawnSpecials (void)
{
sec->MoreFlags |= SECF_IGNOREHEIGHTSEC;
}
else level.HasHeightSecs = true;
if (line.args[1] & 32)
{
sec->MoreFlags |= SECF_NOFAKELIGHT;