Game Development Community

Weird frame rate issue with PlatformerStarter

by xenite · in Torque X Platformer Kit · 10/10/2008 (9:08 am) · 5 replies

I am having an issue with the PlatformerStarter game. On my (4-year old) laptop, everything works great. However, on my top-of-the-line PC, the demo just sort of "chunks" along. The frame rate is close to 0, and it seems like moving the window around can cause the frames to advance one or two clicks. The game I'm working on, which is based on the PlatformerStarter, also has this problem. Fine on the laptop. Totally hosed on the desktop.

I don't have any problems with other games. In fact, the PlatformerDemo works great. It's just the starter that seems to have an issue.

Both machines are running XP.

Has anyone else seen this?

About the author

Recent Threads

  • Can't install on Vista

  • #1
    10/10/2008 (6:01 pm)
    I've discovered something new about this. I think it may be a threading issue. The reason is that when I add

    System.Threading.Thread.Sleep(100);

    to PlatformerStarter.Game.Update, everything seems to work pretty well (though a little slow). This could also explain why the sample game works but the starter doesn't-- the game is doing a lot more.

    Is anyone from GG monitoring this thread? Any ideas?
    #2
    10/10/2008 (7:48 pm)
    I can try to look into this over the weekend and see what I experience on my end.
    #3
    11/09/2008 (8:47 am)
    I am having the same issue over here.
    It works great on one machine, and then I get the very slow issue when I try to use my other machine ( which has a better video card )
    But the demo works fine on both as well.
    I thought I was going crazy.
    #4
    11/18/2008 (3:56 pm)
    Try what I listed in my post (last one of the thread).

    www.garagegames.com/mg/forums/result.thread.php?qt=76264
    #5
    05/26/2009 (2:48 pm)
    Setting SimulateFences to True (in torquesettings.xml) fixed this problem for me. Any idea what this setting does and how to detect (via code) what it should be set to for a particular machine?