Game Development Community

Bots and frame rate

by Howard Dortch · in Torque Game Engine · 11/01/2004 (4:10 pm) · 5 replies

I have 9 bots in my game and the frame rate falls off to about half when I look their direction even tho they are far away and my player is behind a rock and can't see them. I changed the think update time from 100ms to 1500 ms and can buy back 3 fps but now they are sluggish to react.
Anyone have some hints on what might be causing the drop in framerate on objects that should be culled from the scene?

#1
11/01/2004 (6:09 pm)
It's not their polycount, but the overhead in their AI causing this, pretty much. That's why you can get some fps back when you up the update time, but they become sluggish.
#2
11/03/2004 (3:58 am)
Definetly some error in your code. I have them 35 at the moment, there is a drop in FPS but game is still playable.
#3
11/03/2004 (4:25 am)
Wait till the AI pack comes out with it's finite state machine. You will be happily satisfied
#4
11/03/2004 (5:34 am)
@Denis Where do you think the error in my code might be? seems the engine is not culling the bots. My think code is not that expensive, matter of fact I only update one bot per think just to cut it down more.

@Anthony any idea when the AI pak might be ready?
#5
11/03/2004 (2:35 pm)
@Howard I can't offically say but soon I assure you.