mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Improve some of the efficiency loss in F_DoWipe compared to K.S.'s 2.1 code by seperating out some of the loops.
This commit is contained in:
parent
ba3e896655
commit
15741da0a4
1 changed files with 10 additions and 3 deletions
13
src/f_wipe.c
13
src/f_wipe.c
|
|
@ -299,16 +299,23 @@ static void F_DoWipe(fademask_t *fademask, lighttable_t *fadecolormap, boolean r
|
||||||
e = e_base + relativepos;
|
e = e_base + relativepos;
|
||||||
draw_rowstogo = draw_rowend - draw_rowstart;
|
draw_rowstogo = draw_rowend - draw_rowstart;
|
||||||
|
|
||||||
while (draw_rowstogo--)
|
if (fadecolormap)
|
||||||
{
|
{
|
||||||
if (fadecolormap != NULL)
|
if (reverse)
|
||||||
|
s = e;
|
||||||
|
while (draw_rowstogo--)
|
||||||
|
*w++ = fadecolormap[ ( m << 8 ) + *s++ ];
|
||||||
|
}
|
||||||
|
else while (draw_rowstogo--)
|
||||||
|
{
|
||||||
|
/*if (fadecolormap != NULL)
|
||||||
{
|
{
|
||||||
if (reverse)
|
if (reverse)
|
||||||
*w++ = fadecolormap[ ( m << 8 ) + *e++ ];
|
*w++ = fadecolormap[ ( m << 8 ) + *e++ ];
|
||||||
else
|
else
|
||||||
*w++ = fadecolormap[ ( m << 8 ) + *s++ ];
|
*w++ = fadecolormap[ ( m << 8 ) + *s++ ];
|
||||||
}
|
}
|
||||||
else
|
else*/
|
||||||
*w++ = transtbl[ ( *e++ << 8 ) + *s++ ];
|
*w++ = transtbl[ ( *e++ << 8 ) + *s++ ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue