x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

What is better than static mesh for block building?

Hello all! So I have made a simple Minecraft type building game, with blocks, ramps, corners, all of that. Here is my question:

What is better performance wise for block building than static meshes? I have heard tons of people say to use Instanced static meshes but I had a problem where I couldn't get it to remove the block you place. So I am just wondering what is best, and if instanced static meshes are 100% the way to go. Since it is a block building game I would think that would be harder with instanced static meshes but I could be completely wrong.

So, thoughts? Thanks in advance!

Product Version: UE 4.10
Tags:
more ▼

asked Feb 18 '16 at 09:47 PM in Blueprint Scripting

avatar image

JTrocks55
70 6 11 17

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Yes best thing to use in this kind of game is Instanced static meshes, after I implemented them to my system I could create levels 10 times bigger without any lag problems. And for removing an instance you need an index that you can grab from trace, and the component of the InstancedStaticMesh then just use RemoveInstance and that's it.

more ▼

answered Feb 20 '16 at 08:47 PM

avatar image

DDemon
473 21 10 25

avatar image JTrocks55 Feb 22 '16 at 11:14 PM

Ok, thank you for the reply. Just one more question. Would that still be good for manually placing blocks? Because I have seen a few people say that it is only good for generation, but not manual placement.

avatar image DDemon Feb 23 '16 at 12:55 PM

If you mean manually creating the level is kinda hard(you need to do a lot of dirty work), but if you mean in run time all you need to do is to create the right function that will do all the hard work for you. Good luck

avatar image JTrocks55 Feb 24 '16 at 03:20 AM

Thanks! I just meant that the player can place a block, and if that block that the player places in the world should be an instanced static mesh. That's what I mean by manual placement, placement by the player in-game. Like Minecraft.

avatar image DDemon Feb 25 '16 at 03:54 PM

So yea there would be no problem for that but again you need to build a function, that will help you and do all the dirty work.

avatar image JTrocks55 Feb 25 '16 at 10:54 PM

Ok thanks :)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question