IGNOREDBYAI flag

Moderator: GZDoom Developers

Post Reply
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

IGNOREDBYAI flag

Post by Onar4241 »

Hello everyone,

So far in the mod I'm making (That has a lot of special effects) I'm facing many slowdown issues. I've used every single method I can think (A_CheckSight to remove special effects when you're not looking at it, using Indexed colored images instead of true color etc) but I recently read about this flag called NOINTERACTION, and according to the wiki, it says this:
The Wiki wrote:The actor is purely decorative. It will not interact with any other actor and will ignore all game physics (including solid walls and floors!), moving only according to its own momentum. (i.e. The actor will not be affected by gravity, but its movement can still be directly changed using ThrustThing.) All AI routines will ignore this actor's existence, speeding up processing time.
If I'm not mistaken, this means every single AI will ignore the actor, increasing the FPS. Is it possible to break the properties of this flag so we can add an "IGNOREDBYAI" flag which makes all AI routines to ignore a said actor? I seriously need this one, A LOT.

Thanks!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: IGNOREDBYAI flag

Post by Graf Zahl »

Sorry, you are completely misunderstanding what that flag actually does. For normal actors, movement requires very costly calculations for collision detection during movement.
NOINTERACTION skips all this - nothing else. It has no effect on AI and other things, it only simplifies movement calculations. As such, there's nothing to break out of it.

For non-moving actors the effects of NOINTERACTION are nearly negligible.
User avatar
Onar4241
Posts: 296
Joined: Sun Aug 03, 2014 9:41 am
Location: New York

Re: IGNOREDBYAI flag

Post by Onar4241 »

Graf Zahl wrote:Sorry, you are completely misunderstanding what that flag actually does. For normal actors, movement requires very costly calculations for collision detection during movement.
NOINTERACTION skips all this - nothing else. It has no effect on AI and other things, it only simplifies movement calculations. As such, there's nothing to break out of it.

For non-moving actors the effects of NOINTERACTION are nearly negligible.
I did say "If I'm not mistaken" :)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”