darty11 Posted May 14, 2014 Posted May 14, 2014 I will start with this: I know next to nothing about memory usage in java, other than tile entities use more memory than blocks which aren't even actual instances of an object, but just an id for each location. I need a way of getting the locations of all my blocks, in only a certain world. What would be the best way of doing this, making tile entities for each block, or having a list of a new object that stores a world and coordinates? Quote
jabelar Posted May 14, 2014 Posted May 14, 2014 The most important thing about TileEntities is that not that they take more memory (of course, yes they do, I'll get to that later), but that they are ticking every single game tick, which can really affect the TPS when you're having a lot of them around. You can disable that though by setting canUpdate in your TileEntity class to false. That's a really useful tip actually. I can see a lot of uses of non-updating (or selectively updating) tile entities. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.