Skip to content

Commit

Permalink
Enable caching for renderer LUTs
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Sep 6, 2023
1 parent 0cf5b9c commit 414d671
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions r_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@ void R_InitMathTables(void)
{
fuzzoffset[i] = fuzzoffset[i] < 0 ? -fuzzunit : fuzzunit;
}

// enable caching for LUTs
viewangletox = (void *)(((intptr_t)viewangletox) & ~0x20000000);
distscale = (void *)(((intptr_t)distscale) & ~0x20000000);
yslope = (void *)(((intptr_t)yslope) & ~0x20000000);
xtoviewangle = (void *)(((intptr_t)xtoviewangle) & ~0x20000000);
}


Expand Down

0 comments on commit 414d671

Please sign in to comment.