If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Ah, OK, so your big performance drop is due to compiling with -O0. So --enable-debug + forcing -O2 shouldn?t be much slower than without debug?
For your PPA, I prefer not to use --enable-debug and -DDEBUG at all. -DDEBUG is for development only, there's a lot of sanity checking, which reduces performance; not as much as --enable-debug, but it's noticable. --enable-debug only gives you good gdb experience, other than that it's useless.
You said: "torcs 7.3 with debug 6.7 fps", that's with -O2 and -DDEBUG if I understood correctly. If you convert it to percents, you get 8% worse performance with -DDEBUG - that is the cost of all the sanity checking. That's is too much. Imagine every user using your PPA gets 8% lower performance...