Game Development Community

"TRACE" enabled by default in release version of Torque engine for Xbox 360

by Jacob Lynch · in Torque X 2D · 10/24/2010 (1:33 am) · 1 replies

As the title says, if you open up Torque and switch to the build configuration for Xbox 360 in release mode, you'll see that the TRACE flag is enabled. I wish I had noticed this sooner, as I just spent a few hours trying to figure out why ~2000 strings and 150,000 bytes of string memory were allocated every time I fired one of the weapons in my game. As you can imagine, this impacted the garbage collector negatively and resulted in a very annoying stutter. Any reason this is enabled? Shouldn't it be disabled for release mode? After I turned it off, the remote performance monitor displayed 0 string allocations as I fired my weapon, which provided a much smoother experience.

Note: This also exists in the CEV.