mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 06:00:45 +00:00
Optimize for when wall_scalex == 1.0
This commit is contained in:
parent
159307c552
commit
28c30a9294
1 changed files with 10 additions and 2 deletions
12
src/r_segs.c
12
src/r_segs.c
|
@ -737,8 +737,16 @@ void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pfloor)
|
||||||
|
|
||||||
thicksidecol = ffloortexturecolumn;
|
thicksidecol = ffloortexturecolumn;
|
||||||
|
|
||||||
for (INT32 x = x1; x <= x2; x++)
|
if (wall_scalex == FRACUNIT)
|
||||||
thicksidecol[x] = FixedDiv(ds->thicksidecol[x], wall_scalex) + ds->offsetx;
|
{
|
||||||
|
for (INT32 x = x1; x <= x2; x++)
|
||||||
|
thicksidecol[x] = ds->thicksidecol[x] + ds->offsetx;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (INT32 x = x1; x <= x2; x++)
|
||||||
|
thicksidecol[x] = FixedDiv(ds->thicksidecol[x], wall_scalex) + ds->offsetx;
|
||||||
|
}
|
||||||
|
|
||||||
mfloorclip = ds->sprbottomclip;
|
mfloorclip = ds->sprbottomclip;
|
||||||
mceilingclip = ds->sprtopclip;
|
mceilingclip = ds->sprtopclip;
|
||||||
|
|
Loading…
Reference in a new issue