[XNA] Low FPS in massive model rendering

Started by
3 comments, last by ZycklonExxence 12 years, 6 months ago
Hi to all I'm new in this forum! :D

I have a problem with XNA, I am developing a game with XNA Framework 4.0. This game is like Minecraft, but when I start the game, if there is a massive amount of blocks (like 32^3 blocks) the framerate results very low. I am looking for a solution, and I have read something about Hardware Instancing. Can anyone help me? Thanks a lot!

Sorry for my incorrect english :D

XNA Addicted

My Blog (italian)

Advertisement
Are you doing any spatial partitioning to cull non-visible blocks?
Yes, I have written a temporary method for render only the visible blocks, and the blocks now are about 36*6. FPS is increased[font="arial, sans-serif"][color="#333333"][size=2] [/font]significanty but those are a small part of the world! Are there other solutions?

XNA Addicted

My Blog (italian)

Yes, you need culling + instancing (http://create.msdn.com/en-US/education/catalog/sample/mesh_instancing)

Good luck.

[size=1]Project page: [size=1]<

[size=1] XNA FINAL Engine[size=1] [size=1]>
Partially solved!

I use the class BoundingFrustum to check if a block is inside the field of view. If it is into the FoV, I render it. I have already seen that article, but I have some problems to implement it in my solution.

XNA Addicted

My Blog (italian)

This topic is closed to new replies.

Advertisement