This project has moved. For the latest updates, please go here.

Garbage Windows vs XBOX

Aug 31, 2011 at 8:08 PM
Edited Aug 31, 2011 at 8:18 PM

I'm about to release my game on xbox. I've been trying to get rid of most of the garbage.

On PC, farseer pretty much is at 0 allocation wise while running.(with USE_AWAKE_BODY_SET not defined) However, on XBOX, it allocates roughly 400 bytes every second.
What could be causing this? I really need to get this as close to 0 as possible.

I'm running 3.3.1.


Aug 31, 2011 at 8:41 PM
Edited Aug 31, 2011 at 8:42 PM

Decided to disable everything that seems to allocate new HashSets and now I'm pretty close to 0.


Hopefully i won't get other surprises by disabling those

Sep 2, 2011 at 4:22 PM

Where did you change these settings? I'd like to test this in my Xbox build, where even I optimized it a lot, it still drops its framerate at some moments.

Sep 2, 2011 at 5:27 PM

The defines are a bit scattered around the code. You'll have to look around.

Off the top of my head, World.cs, Body.cs, ContactManager.cs and Contact.cs.

Sep 5, 2011 at 7:04 AM

OK, I just realized the defines are in the latest Change Set. That's why I didn't found them, thanks!