Game Development Community

Pauses during games and demo

by Andy Hawkins · in Torque Game Engine · 12/19/2005 (6:39 pm) · 7 replies

I just checked out the TSE car demo and as the camera rotates around the car, the smooth motion pauses, at set intervals. I've noticed this is TGE as well. Is this server ping erm.. thing? It's very noticable if you move forward in a straight line. I suspect it might be polling the server or something. Is there a way to stop this?

#1
12/19/2005 (7:35 pm)
I get this too.. like the game slows down to a crawl and then resumes..

thought it was just me..
#2
12/19/2005 (8:14 pm)
Yeah it's easy to see if you just run in one direction - it's like a jump. The animation is smooth and then suddenly there a jump where it must have done some internal processing and had to catch up the position of the player. A solution to this would be handy - it doesn't look very professional to behave like this.
#3
12/20/2005 (1:57 am)
It's been mentioned a couple of times that part of milestone 3 for TSE is optiimzation of rendering, including animations. This should resolve the known issues.
#4
12/20/2005 (2:03 am)
When I say animation, I mean the flow of the scene / the frame rate - that's what skips. So any animations are affected as well. Explosions etc will all start okay, then skip, then jump to catch up as the cpu gets hit. I assume that if it was a single player game with no server it would not happen, though I haven't tried implemented a single player only mission.
#5
12/20/2005 (11:53 am)
It's almost certainly something naughty in an update loop somewhere. The simulation code is really lightweight in comparison to the networking, and a distributed client-server game is the lowest CPU profile thing you can do...
#6
12/20/2005 (3:06 pm)
Okay - well I can probably find it in my code, but what about the TSE Car demo? Can someone else download it and run it to see if it jumps on their computer as a sanity check please? I have WinXp, ATI 9600 64Meg Vid Card and 1.6 gig Pentium, and 1 gig of ram.

Actually this brings up another topic - is there a profiling tool for Torque that identifies bottlenecks? It might be nice if Torsion could implement that.
#7
12/20/2005 (8:28 pm)
There's a profiler built into Torque, though it's not very good at finding spikes (most profilers aren't, they tend to average things).

Some versions of TSE do have the hitching behavior. That's why I said what I did - it was about TSE's code, in case it wasn't obvious. :)