P_CheckPosition optimization

Moderator: GZDoom Developers

Post Reply
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

P_CheckPosition optimization

Post by Major Cooke »

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.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”