Game Development Community

1.7.4 intermittently slow

by baylor wetzel · in Torque Game Builder · 05/28/2009 (3:37 pm) · 1 replies

i've just started a paperdoll game - click a button, the doll wears pants. Nothing fancy, not even animations - he just stands there in pants. No sound, no scheduled tasks, no GUIs (after the initial main menu). Even the splash screens are turned off

Roughly 1 in 3 times, when i run the game (by pressing Play in the editor), the game runs really slowly. Most of the time, that means you move the mouse and wait a second or three to see it move. The rest of the time, the game never makes it to the startup menu. i've tried it a handful of times from a compiled binary and haven't had the problem there yet, although maybe i didn't try it enough times

Sometimes, i quit my game (but not the editor) and immediately hit Play again and everything is fine. Sometimes i exit the editor, go back in and hit play and it's still slow. i *think* it's more likely to crawl if i switch to another program (in my case, that normally means Photoshop) and then switch back, but i could be imagining that

CPU utilization looks roughly the same each time (around 50%; really high for a dual-core but normal for TGB games unfortunately). Memory utilization and disk writes seem normal. Log files shows nothing different between runs. No script errors. No unusual background tasks (no bittorrent, virus scans, etc.). Never happened on TGB 1.0-1.7.3. This is my first 1.7.4 game. No engine changes

Is there a known problem with 1.7.4?

If this doesn't sound familiar, maybe it really is me. If so, any thoughts on debugging a problem like this? A slow mouse when my code isn't doing anything, there's not really any place i can stick an echo statement

#1
05/28/2009 (5:02 pm)
50% on a dualcore means 100% of a single core (all that TGB uses)