summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2014-02-01 17:42:43 -0600
committerTravis Watkins <amaranth@ubuntu.com>2014-02-01 22:03:04 -0600
commitd7d81fa68fb439c41547d347dd099261ff28af17 (patch)
treed757441b136df4ebd99c559f138ab958c075f388 /CONTRIBUTING.md
parent4a6a81e72412d822f6047c0139524203081fad6f (diff)
downloadcraftbukkit-d7d81fa68fb439c41547d347dd099261ff28af17.tar
craftbukkit-d7d81fa68fb439c41547d347dd099261ff28af17.tar.gz
craftbukkit-d7d81fa68fb439c41547d347dd099261ff28af17.tar.lz
craftbukkit-d7d81fa68fb439c41547d347dd099261ff28af17.tar.xz
craftbukkit-d7d81fa68fb439c41547d347dd099261ff28af17.zip
Load all already generated chunks via async chunk system
Currently we use the async chunk loading system only when players trigger chunk loading. If a chunk is loaded for any other reason it goes through a separate codepath. This means if a player has trigged a chunk load and before the chunk loads something else wants the same chunk we will load it twice and throw away the second result. With this change we instead use the sync processing feature of the AsynchronousExecutor to load the chunk which will pull it out of the queue if it was already queued to load. This means we only ever load a chunk once. Because chunk generation is not thread safe we still fallback to the vanilla chunk loading system if the chunk does not currently exist.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions