views:

161

answers:

1

I'm making a game in XNA, and I noticed that when I publish the game runs faster than when I run in release mode. I have optimization enabled in the build options, trace and debug disabled. What else could be going on here. This is causing difficulty for tuning. Has anyone seen this before? What could be going on?

+4  A: 

How do you run it in Release mode? Do you press F5 or the green arrow button ('Start Debugging')? If so, this will run your program with the VS debugger attached, in some cases slowing code down by more than an order of magnitude (seen such a difference with CPU intensive code using XNA). Either run your code with Ctrl+F5 ('Start Without Debugging') or from outside VS (the same thing, as far as I know).

JulianR