move line polyseg check out of the lööp if theres no polyobjs on le map
seems to reduce a hotspot there significantly
This commit is contained in:
1 parent
fa757c6695
commit
b4416c32ed
1 file changed
+14
-3
+14
-3
@@ -3143,11 +3143,22 @@ doaddline:
|
||||
// without talking about the overdraw of course.
|
||||
sub->sector->validcount = validcount;/// \todo fix that in a better way
|
||||
|
||||
while (count--)
|
||||
if (numPolyObjects)
|
||||
{
|
||||
if (LIKELY(!line->polyseg)) // ignore segs that belong to polyobjects
|
||||
while (count--)
|
||||
{
|
||||
if (LIKELY(!line->polyseg)) // ignore segs that belong to polyobjects
|
||||
HWR_AddLine(line);
|
||||
line++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
while (count--)
|
||||
{
|
||||
HWR_AddLine(line);
|
||||
line++;
|
||||
line++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user