On 17/09/11 7:52 PM, Marco Leise wrote:
Am 17.09.2011, 20:01 Uhr, schrieb Adam D. Ruppe
<destructiona...@gmail.com>:

Ah, that explains it. I usually don't use the -O switch.

During development when you recompile several times an hour, you really
don't need -O either. For my hobby projects I usually set up the IDE
with a compile command without -O and place a Makefile in the directory
that has optimizations enabled. Sure, there are times when you run
performance tests, but they aren't the usual case, so I think it is fair
to compare compiles without optimizations in this context.

I suppose that's true for most people, but not for games developers. When testing changes, you need the game to be running at interactive framerates, and it's very difficult to achieve that in a debug build, so we generally always run optimized, and just use MSVC++'s #pramga optimize(off, "") directive to unoptimize specific sections of code for debugging.

To be fair, my hobby project still runs fast without optimizations, but I definitely need to repeatedly compile with optimizations on when performance tuning.

Reply via email to