This project has moved and is read-only. For the latest updates, please go here.

Platform level and performance

Jan 8, 2010 at 11:03 AM

I know there have been some discussions about this, and I've read them, but still I'd like to hear your opinions about this one.

Basically, I want to be able to create levels build out of blocks. The levels I want to make are single screen, i.e. the camera never moves. I figured there will be around 250 blocks needed to build a good level. These are all just solid blocks. Next to the level there is a movable character and max 10 other active physical objects.

Now my question; Will it be ok, performance-wise, to simply attach a physics geom and body to each of the blocks? I want my game to be well playable (60fps) on lower-end systems as well (e.g. single core 1.3 GHz).
A simple optimalization would be to create 4 big blocks to cover the sides of the screen, saving around 100 small blocks. I'd preferably not do this, but if I do, do you think this will have notable performance improvement?

Or, does anyone have a better idea to create tile-based levels with Farseer physics?

Thanks alot in advance!

Jan 11, 2010 at 10:26 AM

No-one who can tell me I'm on the right track or not?

Jan 11, 2010 at 12:42 PM

You should just do it. If it's too slow, change it.

Jan 12, 2010 at 5:04 PM

Yeah ok.
I just wasn't sure if this is 'the' way to do it. But I guess it is then :)