Game Development Community

Serious frame per minute problem!! (mayby AI)

by Maximillian Brewer · in Torque Game Engine · 09/06/2008 (8:05 pm) · 4 replies

Hi,

I am working on a game which is basically finished, except for one problem: it lags ALOT!!

I have two versions of my game, one with the AI Guard resource intergrated, and one without. The one without, works fine, so i assume my problem is to do with the AI Guard resource.

Does anyone have any ideas on how to fix the problem??

From Max Brewer

#1
09/06/2008 (8:33 pm)
Are you using the AStar AIGuard version? There was some serious cpu usage going on there using a brute force lookup through the AStar link list doing CastRays like mad. There has been some updates to it to correct this.

If you're not using the AStar version, then I have nothing.
#2
09/06/2008 (8:46 pm)
Hi,

I was using the AI Guard Unit by Mark Halcomb, but I have decided to remove it and see if the "Improved AI Guard Unit" works better (as it uses NO engine modifications)

From Max

PS. Thanks anyway
#3
09/07/2008 (2:44 am)
The original AIGuard resource you used does pull a lot of resources. It's look function caused most of it. I never tried to fix it in my demo as I only had 25 bots running around, so didnt notice the lag much.
#4
09/07/2008 (3:08 am)
Hi anyone following this post forum,

I have succesfully incorporated in the inproved Ai Guard, and it runs VERY well.

If anyone is interested in using it, I HIGHLY suggest it

From Max