So I have a habit of leaving my game on debug mode at all times, even compiled versions that I let people host.
I've been told this is "bad" for some reason or another, or causes lag or something.
But I haven't noticed any speed decrease or anything bad.
Does anyone know more specifically the advantages and/or disadvantages of leaving the game on debug mode forever, if any?
ID:152026
May 13 2008, 3:54 am
|
|
May 13 2008, 8:47 am
|
|
Leaving the game in debug mode bloats the DMB size considerably. Other than that, it adds no additional overhead that I'm aware of.
|
In response to Jtgibson
|
|
With debug mode on, each line of your source (that contains a command) is compiled with an extra bytecode opcode giving the line number; likewise the beginning of each proc/verb gets an extra bytecode giving the source filename.
These extra bytecodes have to be skipped over by the interpretor, slowing down the program by a tiny amount; however, the amount of slowdown is so small it's hardly noticeable. I found about a 0.85% increase with a simple test (e.g. a program that took 10 minutes to run would take an extra 5 seconds when compiled in debug mode.) |