[Added] P_CheckPosition optimization

Moderator: GZDoom Developers

P_CheckPosition optimization

Postby Major Cooke » Sat Aug 22, 2020 1:03 pm

Pull Request

A small code change. I noticed that the THRUACTORS flag is being needlessly checked throughout PIT_CheckThing for the actor that calls (P_)CheckPosition, so I modified it to not go through the actor checking loop if the actor passed through has the flag.

Also pushed the THRUACTORS flag check up higher over the distance check in PIT_CheckThing itself.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest