That was me today, with collision detection. Also, it took me a long time to figure out why my grid of 1000 blocks was taking up 250mb of ram. It turns out that each block had its own BasicEffect, which apparently is pretty big.
So all in all, everything looks exactly the same externally, but I'm much more comfortable with the program internals now.
Tommorow I will add frustrum/occlusion culling to push my framerate up from 15 fps. 1000000 cubes stacked into a giant cube, without culling, is bad for your health!
2 comments:
Indeed, many blocks soon adds up. If you can cheat it, at all, do so..
Try to find groups of blocks, and replace them with block-like bigger blocks.. groups of 2x2 become 1 single 4 block, etc.
You could probably do it whilst loading in a level.
In not 100% sure if that's doable in this game, but it made things quite a bit better in JNKPlat3D.
Hmm. How is the camera handled in the game. If the player can zoom all the way out and see al the cubes then go with Jayenkai's solution. If the player can't do that. Then only work with cubes that are visible ( if they are not used for something else ).
Post a Comment