- r_vanillatrans: Cache the cache! Transform the function into a global variable and recheck at the start of D_Display

This commit is contained in:
Rachael Alexanderson 2017-06-04 06:05:40 -04:00 committed by Christoph Oelckers
commit c18134dbd3
6 changed files with 8 additions and 4 deletions

View file

@ -670,6 +670,8 @@ void D_Display ()
cycles.Reset();
cycles.Clock();
r_UseVanillaTransparency = UseVanillaTransparency(); // [SP] Cache UseVanillaTransparency() call
if (players[consoleplayer].camera == NULL)
{
players[consoleplayer].camera = players[consoleplayer].mo;