Sign in to follow this  

Game gets higher fps when executing through gDebugger

This topic is 2056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I'm working on improving my game performance and I'm using gDebugger to profile it. I've come to a problem that when executing the game through gDebugger I get ~150fps, while when executing the game normally I get only ~60. I print the fps on screen and I can assure it's not an error in my fps computation, since when I run through dDebugger the fps print matches the value in gDebugger.

I'm using MSV Compiler. The binary has no code optimization (-O0). My game had a 60 frame cap but I've disabled it. Any ideas?

Thanks.

Share this post


Link to post
Share on other sites
60 fps is perfectly normal if vertical synchronization is enabled. (It might be disabled while debugging) and thus its nothing to worry about.

Share this post


Link to post
Share on other sites
[quote]
[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][size=3][left][background=rgb(250, 251, 252)]I'm working on improving my game performance and I'm using gDebugger to profile it. I've come to a problem that when executing the game through gDebugger I get ~150fps, while when executing the game normally I get only ~60.[/background][/left][/size][/font][/color]
[/quote]
Hitting 60 FPS on your target hardware? Performance = achieved!

If your game isn't finished, stop now and continue to develop the core game. When you add new stuff to your game, it could invalidate some of these optimisations you would be adding. In addition, new, bigger bottlenecks might appear. Finally, optimised code tends to be more difficult to maintain. These are all reasons to defer non-essential optimisation until later.

You should only optimise in the middle of a game if there are clear performance problems.
[quote]
[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][size=3][left][background=rgb(250, 251, 252)]Any ideas?[/background][/left][/size][/font][/color]
[/quote]
Ship with dDebugger?

Share this post


Link to post
Share on other sites
It would be awesome to ship with gDebugger, hehehe. But seriously, I'm hitting 60fps in my hardware, which is a fairly good computer, other less powerful hardware will not achieve that. I guess it would be a better approach to debug on worse machine and find the bottleneck there instead of mine. The fps problem still bugs me though.

I wonder if gDebugger has some sort of dark magic...

Share this post


Link to post
Share on other sites
Figured out the magic, it turns out the gdebugger has vsync off while my game setting turns it on.

Share this post


Link to post
Share on other sites
Sign in to follow this