summaryrefslogtreecommitdiffstats
path: root/src/ChunkData.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+2
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Optimise chunk set (#4260)peterbell102018-07-231-1/+1
| | | | | | | | | | | | | | | | | Closes #1244 Initially I was just going to add the cChunkData to cSetChunkData but profiling revealed that the copying wasn't even the biggest slowdown. Much more time was being spent in cChunk::CreateBlockEntities and cChunk::WakeUpSimulators than was in memcpy so I've made those significantly faster as well. Optimisations performed: * cSetChunkData now stores blocks in a cChunkData object * cChunkData objects can now perform moves even if they are using different pools * cChunk::CreateBlockEntities now iterates in the correct order and only over present chunk sections * Similarly for cChunk::WakeUpSimulators * cSetChunkData::CalculateHeightMap now shortcuts to the highest present chunk section before checking blocks directly
* cChunk and cChunkData: Use vectors for block get and set functions (#4172)peterbell102018-02-041-71/+69
| | | | | * cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions.
* Implement anvil chunk sparsingpeterbell102017-08-261-0/+123
|
* Implement protocol level chunk sparsing (#3864)peterbell102017-08-211-85/+91
|
* Out of world blocks are now always considered air blocksLogicParrot2016-04-231-4/+9
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-17/+17
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-15/+15
|
* Fixed Bug in cChunkData.worktycho2015-03-101-1/+1
| | | FIxed a bug where if the index was not aligned with the sections empty sections would not be set in the correct location.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-26/+26
|
* Merge branch 'master' of github.com:mc-server/MCServerTycho2014-06-161-11/+14
|
* Further improvements on redstone speedTiger Wang2014-06-071-1/+1
| | | | | | | Based on suggestions of @worktycho * Repeaters now walk their data structure only when needed * Fixed a bug with cChunkData returning an incorrect value for whether a meta had changed
* Fixed #1057Tiger Wang2014-06-041-1/+1
|
* removed NULL assignment to const valueTycho2014-05-301-1/+0
|
* removed unneded addressofTycho2014-05-301-7/+11
|
* Fixed cChunkData nibble copying.madmaxoft2014-05-301-9/+9
|
* Fixed sign comparison.madmaxoft2014-05-301-1/+1
|
* Fixed wrong copy sizes in cChunkData.madmaxoft2014-05-301-10/+10
|
* Attempt at fixing an unresolved symbol in gcc / clang.madmaxoft2014-05-291-1/+1
|
* Fix bug when a_Idx is not a multiple of SectionBLockCountworktycho2014-05-291-1/+1
|
* Derpworktycho2014-05-291-1/+1
|
* fix underflowworktycho2014-05-291-1/+1
| | | Wish c++ could specify saturating unsigned underflow.
* Fixed wrong block sizes for copying / setting.madmaxoft2014-05-291-40/+35
|
* Fixed Wrong types in nibble sizeofsworktycho2014-05-291-3/+3
|
* Fixed overflow bugworktycho2014-05-291-6/+9
|
* Added comments, reformatted code.madmaxoft2014-05-291-249/+142
|
* Fixed forgotten changes.madmaxoft2014-05-291-3/+3
|
* cChunkData: Normalized code style.madmaxoft2014-05-281-78/+90
|
* Fixed cChunkData formatting.madmaxoft2014-05-281-28/+90
|
* Fixed test globals to work with precompiled headersTycho2014-05-271-4/+0
|
* inject TestGlobals.h correctlyTycho2014-05-241-3/+7
|
* Moved accessors to cpp fileTycho2014-05-241-1/+229
|
* Implemented style changesTycho2014-05-241-33/+28
|
* Fixed if spacesTycho2014-05-211-6/+7
|
* Fixed reversed comparisons to nullTycho2014-05-211-9/+9
|
* Added space to ChunkData.cppTycho2014-05-211-20/+100
|
* Fixed stylistic issuesTycho2014-05-211-9/+9
|
* Renamed cChunkBuffer to cChunkDataTycho2014-05-211-0/+320