XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

Very slow performance outside Visual Studio

Last post 05-12-2008 3:57 PM by gorky. 4 replies.
  • 05-12-2008 1:26 AM

    Very slow performance outside Visual Studio

    Hi All,

    I have an XNA game that I'm working on that runs perfectly fine in Visual Studio. Just sitting there it takes between 3% and 8% CPU. If I close Visual Studio, and try to run the game, it takes up around 80% CPU just sitting there, and it runs very very slowly. I have no idea what could be causing this...I have Reference mode unchecked in my DirectX control panel, so I don't think it's running in reference mode, but I don't know what's wrong.

    Has anybody run into something like this?

    Edit: I should mention that when I run the game in Visual Studio, I get around 85 FPS. When I close Visual Studio and run it, I get around 13 FPS...

    Thanks,
    Tom
  • 05-12-2008 12:06 PM In reply to

    Re: Very slow performance outside Visual Studio

    I've made a simple project here that does nothing but display a background image and show the FPS in the title bar, and I have the same problem. I get around 85 FPS as long as Visual Studio is running (I don't even need to have the project open, VS just has to be running), and 13 FPS when VS isn't running...

    This is the whole project:

    http://www.gersic.com/files/WindowsGame1.zip

    And this is my Release build of it:

    http://www.gersic.com/files/Release.zip

    Help!

    If I start the game, I get 13 FPS. I start Visual Studio (no project), and it goes up to 85 FPS. I close VS, and it goes back down to 13 FPS. It makes no sense!

    Thanks,
    Tom
  • 05-12-2008 1:05 PM In reply to

    Re: Very slow performance outside Visual Studio

    This is very odd: my guess would be something weird about your computer, but I've never head of this particular problem before.

    Do other (non-XNA) 3D games run ok on this machine?
    XNA Framework Developer - blog - homepage
  • 05-12-2008 2:06 PM In reply to

    Re: Very slow performance outside Visual Studio

    I've seen mention of this in other forums before, but I can't for the life of me remember what the explanation was.

     

  • 05-12-2008 3:57 PM In reply to

    Re: Very slow performance outside Visual Studio

    b0jangles:
    I've made a simple project here that does nothing but display a background image and show the FPS in the title bar, and I have the same problem. I get around 85 FPS as long as Visual Studio is running (I don't even need to have the project open, VS just has to be running), and 13 FPS when VS isn't running...

    This is the whole project:

    http://www.gersic.com/files/WindowsGame1.zip

    And this is my Release build of it:

    http://www.gersic.com/files/Release.zip

    Help!

    If I start the game, I get 13 FPS. I start Visual Studio (no project), and it goes up to 85 FPS. I close VS, and it goes back down to 13 FPS. It makes no sense!

    Thanks,
    Tom

    Your release version runs 59-60 fps on my pc.  Like Shawn says it's probably something specific to your PC.  For example, do you have a virus detection software running?  If so disable and try it again. 

Page 1 of 1 (5 items) Previous Next