summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/PlayerManager.java
Commit message (Collapse)AuthorAgeLines
* Update CraftBukkit to Minecraft 1.4.6feildmaster2012-12-20-303/+0
|
* Load chunks asynchronously for players.Travis Watkins2012-12-12-11/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+7
|
* Update to 1.3.2Travis Watkins2012-08-25-1/+1
|
* Fix issues with chunk saving. Fixes BUKKIT-2158, BUKKIT-2018 and BUKKIT-2229Mike Primm2012-08-19-0/+9
|
* Fixed PlayerManager ConcurrentModificationExceptions. Fixes BUKKIT-1972Wesley Wolfe2012-08-04-3/+7
|
* Update CraftBukkit to Minecraft 1.3.1feildmaster2012-08-02-56/+93
|
* [Bleeding] Only do unload-all on tick when last player leaves. Fixes BUKKIT-1060Mike Primm2012-03-08-0/+7
|
* Updated to Minecraft 1.1Erik Broes2012-01-12-0/+8
|
* Updated to use mc-dev rename revision 1Nathan Adams2011-11-30-2/+2
|
* Rename revision 2Dinnerbone2011-09-15-2/+2
|
* Revert "Implements interface for changing the view distance."EvilSeph2011-08-15-104/+18
|
* Implements interface for changing the view distance.Andrew Ardill2011-08-15-18/+104
| | | | | | | | | | | | | | Uses default view distance if player's view distance is not set Throws an illegal argument exception if view distance is set too high or too low. Pushes notifications of server and world view distance changes to the player. Move view distance functions from PlayerManger to WorldServer. Set player minimum view distance to 1 for now. Reset player's 'last known' position when recalculating visible chunks. Use per-player view distance in chunk distance checks
* Massive renaming update in nms. If you bypassed Bukkit, you will likely break.Erik Broes2011-06-27-12/+8
| | | | Also minimized all the nms diffs and generic cleanups all around.
* Generic cleanupErik Broes2011-06-12-1/+1
|
* More teleport changes. Thanks Zeerix!EvilSeph2011-06-08-8/+18
|
* Implemented 1.6!Dinnerbone2011-05-26-38/+42
|
* Whitespace + general cleanupErik Broes2011-05-15-2/+2
|
* Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break.Erik Broes2011-04-20-11/+11
|
* Sped up teleporting even more, + fixed isSneakingDinnerbone2011-02-28-15/+4
|
* Temporary fix for teleportationDinnerbone2011-02-25-0/+19
|
* Generic code cleanupErik Broes2011-02-23-4/+6
|
* Update to Minecraft 1.3 betaDinnerbone2011-02-23-39/+26
|
* N.M.S cleanup in preparation for updateDinnerbone2011-02-21-3/+3
|
* Fixed entity updatingDinnerbone2011-02-07-2/+2
|
* Possibly fixed block/chunk leakingDinnerbone2011-02-07-1/+5
|
* Added internal MC support for multiple worldsDinnerbone2011-02-07-10/+12
|
* Actually implement the spiral stuff now, oopsErik Broes2011-02-01-3/+37
|
* Chunkloading around player now happens in a spiral! No more floating over ↵Erik Broes2011-02-01-0/+138
the void waiting for the floor to load!