summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ChunkRegionLoader.java
Commit message (Collapse)AuthorAgeLines
* Update to Minecraft 1.8Thinkofdeath2014-11-28-406/+0
| | | | For more information please see http://www.spigotmc.org/
* Update CraftBukkit to Minecraft 1.7.10Travis Watkins2014-07-08-3/+3
|
* Update CraftBukkit to Minecraft 1.7.8Travis Watkins2014-04-11-2/+1
|
* Update CraftBukkit to Minecraft 1.7.5Nate Mortensen2014-03-21-1/+1
|
* Update CraftBukkit to Minecraft 1.7.2mbax2013-11-30-67/+72
|
* Update CraftBukkit to 1.6.1Nate Mortensen2013-07-01-3/+5
|
* Update CraftBukkit to Minecraft 1.5.2Travis Watkins2013-04-27-15/+19
|
* When moving a misplaced chunk move tile entities too. Fixes BUKKIT-4092Travis Watkins2013-04-15-0/+14
| | | | | | | | | | | | | | | | | | When a chunk is being loaded the server checks to ensure the chunk's idea of where it is located matches where it was located in the region file. If these two values do not match the chunk's idea of its position is updated and the chunk is reloaded. In vanilla minecraft this loading involves the chunk's tile entities as well. With the change to loading player chunks asynchronously we split loading tile entities to a separate step that takes place after this check. Because of this tile entities are loaded with invalid locations that result in trying to fetch block data from negative or too large positions in the chunk's internal block storage arrays. Because loading the tile entities is not thread safe we cannot return to vanilla behavior here. Instead when we detect a misplaced chunk we just edit the NBT data for the chunk to relocate the tile entities. This results in them moving correctly with the chunk without having to actually load them first.
* Cleanup comments, formatting, etcTravis Watkins2013-03-25-2/+2
|
* Update CraftBukkit to Minecraft 1.5Travis Watkins2013-03-15-10/+23
|
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-3/+13
|
* Load chunks asynchronously for players.Travis Watkins2012-12-12-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a player triggers a chunk load via walking around or teleporting there is no need to stop everything and get this chunk on the main thread. The client is used to having to wait some time for this chunk and the server doesn't immediately do anything with it except send it to the player. At the same time chunk loading is the last major source of file IO that still runs on the main thread. These two facts make it possible to offload chunks loaded for this reason to another thread. However, not all parts of chunk loading can happen off the main thread. For this we use the new AsynchronousExecutor system to split chunk loading in to three pieces. The first is loading data from disk, decompressing it, and parsing it in to an NBT structure. The second piece is creating entities and tile entities in the chunk and adding them to the world, this is still done on the main thread. The third piece is informing everyone who requested a chunk load that the load is finished. For this we register callbacks and then run them on the main thread once the previous two stages are finished. There are still cases where a chunk is needed immediately and these will still trigger chunk loading entirely on the main thread. The most obvious case is plugins using the API to request a chunk load. We also must load the chunk immediately when something in the world tries to access it. In these cases we ignore any possibly pending or in progress chunk loading that is happening asynchronously as we will have the chunk loaded by the time they are finished. The hope is that overall this system will result in less CPU time and pauses due to blocking file IO on the main thread thus giving more consistent performance. Testing so far has shown that this also speeds up chunk loading client side although some of this is likely to be because we are sending less chunks at once for the client to process. Thanks for @ammaraskar for help with the implementation of this feature.
* Update CraftBukkit to Minecraft 1.4.4.Travis Watkins2012-11-13-8/+4
|
* Update CraftBukkit to Minecraft 1.4(.2).Travis Watkins2012-10-27-2/+2
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-23/+31
|
* Cleaned up CraftBukkit comments in NMS.Wesley Wolfe2012-07-23-2/+1
| | | | | | | | | | | | | Added newlines at the end of files Fixed improper line endings on some files Matched start - end comments Added some missing comments for diffs Fixed syntax on some spots Minimized some diff Removed some no longer used files Added comment on some required files with no changes Fixed imports of items used once Added imports for items used more than once
* Updated CraftBukkit to 1.2Nathan Adams2012-03-01-9/+184
|
* Fixed vanilla issue where chunks would be mislocated and corrupt. Big thanks ↵Nathan Adams2012-01-30-8/+4
| | | | to Wug for the fix.
* Added ChunkLoader.java and ChunkRegionLoader.java for diff visibilityNathan Adams2012-01-30-0/+141