summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityItemFrame.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2014-06-21 11:38:28 -0500
committerTravis Watkins <amaranth@ubuntu.com>2014-06-23 16:24:39 -0500
commit6364f59ac40ecad5eea3b2691fc8dd8f7582f008 (patch)
treeeffa3eb52c6ce733e5a7f8a2079525562265a532 /src/main/java/net/minecraft/server/EntityItemFrame.java
parent5adbab524d5d039e3ac33f307ccd6d019639edad (diff)
downloadcraftbukkit-6364f59ac40ecad5eea3b2691fc8dd8f7582f008.tar
craftbukkit-6364f59ac40ecad5eea3b2691fc8dd8f7582f008.tar.gz
craftbukkit-6364f59ac40ecad5eea3b2691fc8dd8f7582f008.tar.lz
craftbukkit-6364f59ac40ecad5eea3b2691fc8dd8f7582f008.tar.xz
craftbukkit-6364f59ac40ecad5eea3b2691fc8dd8f7582f008.zip
Use compact memory format for uniform chunk section data.
Many chunk sections contain parts of their data that are the same for every block they contain. In these cases we can save memory by saving a single value instead of an array of 4096 copies of that value. Block light and block data are most likely to be uniform followed closely by sky light data. Block ids are far less likely to be uniform but give the largest saving when they are. Because of this we use a compact format for every part of the chunk. Memory saved from this technique will vary based on the world but seems to be about 50% on normal Minecraft generated chunks.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityItemFrame.java')
0 files changed, 0 insertions, 0 deletions