How to optimize a minecraft like game

Hi !

I am actually trying to produce a minecraft like game my problems lies in the fps which is incredible (1200)

to get the fps counter to a lower level i tried not to add the cube that weren’t visible (if it has a cube under, above, right, left, front and behind it is not visible) but this doesn’t solve the problem i still need to display less cube…

So if someone had an idea on how to reduce the fps counter…

Thanks

Search the forum for “voxel” and you’ll get lots of hits. Some people have even provided source code (bloxel I think).



Basic hints: box worlds are not made of boxes, only draw the faces that are visible, batch heavily.