Minecraft style game is really laggy
Hey i was wondering if anyone would no a good way to go about optimizing a minecraft style game. I have already set up the noise so there is hills and an inventory system with multiple blocks and stuff but if i go into the game with the depth of the terrain set to one so if i dig down one block you can fall out of the world it runs pretty well since there is not that much on screen but is i start making it 4-5 blocks deep it is unplayable. I am using hierarchical instanced static mesh and have set it to be an occluder but it is still laging is there a way to make it that only visible faces are shown or something. Anyone have any advice.
asked Sep 27 '17 at 07:55 PM in Blueprint Scripting
it depends very much on the game mechanics you have made. a trivial approach seems like starting with all blocks disabled, and then enable these that in range of the viewer. it can be an intense task for calculation because there are many blocks and checking each one will be very hot, so you may adopt original minecraft rendering tactic, in which the blocks are arranged in chunks, and these chunks are loaded instead of single blocks.
Follow this question
Once you sign in you will be able to subscribe for any updates here