1
0
cuberite-2a/src
Tiger Wang e7fba08e6c Major refactoring of redstone
This commit is a refactoring of the redstone code, mainly the functions
handling the removal of invalid blocks from power supplier data
structures. Its aim is to improve performance and potentially reduce the
memory footprint of the data structures.

It works to reduce the amount of GetBlock()s triggered every tick.
Before, a GetBlock() was requested for every single item in the data
lists, as well as for every single redstone block in a chunk. Following
these changes, the AddBlock() event is utilised more effectively to only
update the lists when needed (a block is changed), as well as to insert
the block type (and update it when needed) alongside the coordinates
into the main redstone simulator chunkdata list.

In short, a single GetBlock() is now cached, with this cache being
updated when the simulator is awoken due to a block change.

At least, I *hope* that this is what it does :P
2014-01-10 20:31:05 +00:00
..
Bindings Plugin messages are received and handed to plugins. 2014-01-07 17:47:20 +01:00
BlockEntities Fixed a few MSVC warnings. 2014-01-06 22:22:33 +01:00
Blocks Merge pull request #461 from mc-server/repeaters 2013-12-25 23:57:02 -08:00
Entities Fixed a cPlayer::IsGameModeAdventure. It was determined based off of gmCreate rather than gmAdventure. 2013-12-30 21:30:20 -07:00
Generating More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
HTTPServer More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
Items Fixed a few MSVC warnings. 2014-01-07 14:24:25 +01:00
Mobs Merge branch 'fixes&features' of git://github.com/tonibm19/MCServer 2013-12-25 19:50:18 +01:00
OSSupport Added fake functions into cCriticalSection because of the change to ASSERT 2014-01-05 15:08:30 -07:00
Protocol Merge pull request #516 from mc-server/favicon 2014-01-07 09:09:57 -08:00
Simulator Major refactoring of redstone 2014-01-10 20:31:05 +00:00
UI More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
WorldStorage Fixed a few MSVC warnings. 2014-01-07 14:24:25 +01:00
Authenticator.cpp Fixed some of tiger's derpyness. 2013-11-27 07:27:19 +00:00
Authenticator.h Moved source to src 2013-11-24 14:19:41 +00:00
BlockArea.cpp Fixed a few MSVC warnings. 2014-01-07 14:24:25 +01:00
BlockArea.h Moved source to src 2013-11-24 14:19:41 +00:00
BlockID.cpp Fixed repeaters delay, maybe 2013-12-20 21:19:13 +00:00
BlockID.h Replaced esCreeper with esMonster. 2013-12-23 22:36:22 +01:00
BlockTracer.h fixed warnings in World.cpp 2013-12-31 09:16:42 +01:00
BoundingBox.cpp Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). 2013-12-20 16:01:34 +01:00
BoundingBox.h Moved source to src 2013-11-24 14:19:41 +00:00
ByteBuffer.cpp removed unneccisary cast 2013-12-31 09:16:44 +01:00
ByteBuffer.h fixed warnings in bytebuffer.cpp 2013-12-31 09:16:41 +01:00
ChatColor.cpp Finally removed the function. 2013-12-24 13:25:58 +00:00
ChatColor.h removed the function def also 2013-12-24 13:26:54 +00:00
Chunk.cpp Fixed compilation in VC2008. 2013-12-30 17:41:59 +01:00
Chunk.h Fixed compilation in VC2008. 2013-12-30 17:41:59 +01:00
ChunkDef.h Major refactoring of redstone 2014-01-10 20:31:05 +00:00
ChunkMap.cpp More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
ChunkMap.h Implented BroadcastParticleEffect 2013-12-22 14:45:25 +01:00
ChunkSender.cpp merged in warnings changes 2013-12-22 16:11:34 +00:00
ChunkSender.h Moved source to src 2013-11-24 14:19:41 +00:00
ClientHandle.cpp Plugin messages are received and handed to plugins. 2014-01-07 17:47:20 +01:00
ClientHandle.h Plugin messages are received and handed to plugins. 2014-01-07 17:47:20 +01:00
CMakeLists.txt Output dir set to $/MCServer. 2014-01-06 10:13:19 +01:00
CommandOutput.cpp Moved source to src 2013-11-24 14:19:41 +00:00
CommandOutput.h merged in warnings changes 2013-12-22 16:11:34 +00:00
CraftingRecipes.cpp Moved bindings-related to a Bindings subfolder. 2013-12-08 12:17:54 +01:00
CraftingRecipes.h Moved source to src 2013-11-24 14:19:41 +00:00
Cuboid.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Cuboid.h Moved source to src 2013-11-24 14:19:41 +00:00
DeadlockDetect.cpp added abort to DeadlockDetector to generate core dumps on failure 2013-12-10 16:59:45 +00:00
DeadlockDetect.h DeadlockDetect is configurable now. 2013-11-30 22:14:47 +01:00
Defines.h Fixed normalizing large angles. 2013-12-08 13:08:56 +01:00
Enchantments.cpp Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). 2013-12-20 16:01:34 +01:00
Enchantments.h Moved source to src 2013-11-24 14:19:41 +00:00
Endianness.h Moved source to src 2013-11-24 14:19:41 +00:00
FastRandom.cpp Properly fixed warnings in cFastRandom. 2013-12-20 16:11:25 +01:00
FastRandom.h Moved source to src 2013-11-24 14:19:41 +00:00
FurnaceRecipe.cpp Moved source to src 2013-11-24 14:19:41 +00:00
FurnaceRecipe.h Moved source to src 2013-11-24 14:19:41 +00:00
Globals.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Globals.h Disabled an unneeded MSVC warning. 2014-01-07 17:15:08 +01:00
Group.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Group.h Moved source to src 2013-11-24 14:19:41 +00:00
GroupManager.cpp fixed compile? 2013-12-24 10:36:06 +00:00
GroupManager.h Moved source to src 2013-11-24 14:19:41 +00:00
Inventory.cpp fixed warnings in Inventory.cpp 2013-12-31 09:16:42 +01:00
Inventory.h Moved source to src 2013-11-24 14:19:41 +00:00
Item.cpp Fixed a few MSVC warnings. 2014-01-06 22:22:33 +01:00
Item.h Fixed a few MSVC warnings. 2014-01-06 22:22:33 +01:00
ItemGrid.cpp Fixed signedness warning in cItemGrid. 2013-12-22 15:45:45 +01:00
ItemGrid.h Fixed signedness warning in cItemGrid. 2013-12-22 15:45:45 +01:00
LeakFinder.cpp Made cmake compilation possible on Windows. 2013-12-27 11:51:08 +01:00
LeakFinder.h Moved source to src 2013-11-24 14:19:41 +00:00
LightingThread.cpp More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
LightingThread.h Fixed compiler warnings in LightingThread.cpp. 2013-12-01 14:04:17 +01:00
LinearInterpolation.cpp Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). 2013-12-20 16:01:34 +01:00
LinearInterpolation.h Moved source to src 2013-11-24 14:19:41 +00:00
LinearUpscale.h Merge remote-tracking branch 'origin/master' into foldermove2 2013-11-24 14:37:03 +00:00
LineBlockTracer.cpp More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
LineBlockTracer.h Moved source to src 2013-11-24 14:19:41 +00:00
Log.cpp Merge remote-tracking branch 'origin/master' into foldermove2 2013-11-24 14:37:03 +00:00
Log.h Moved source to src 2013-11-24 14:19:41 +00:00
main.cpp Graceful shutdown on SIGTERM 2014-01-07 21:23:26 +00:00
Matrix4f.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Matrix4f.h Moved source to src 2013-11-24 14:19:41 +00:00
MCLogger.cpp Moved source to src 2013-11-24 14:19:41 +00:00
MCLogger.h Moved source to src 2013-11-24 14:19:41 +00:00
MemoryLeak.h Moved source to src 2013-11-24 14:19:41 +00:00
MersenneTwister.h Moved source to src 2013-11-24 14:19:41 +00:00
MobCensus.cpp Fixed minor warnings. 2013-12-20 16:22:16 +01:00
MobCensus.h Moved source to src 2013-11-24 14:19:41 +00:00
MobFamilyCollecter.cpp Moved source to src 2013-11-24 14:19:41 +00:00
MobFamilyCollecter.h Moved source to src 2013-11-24 14:19:41 +00:00
MobProximityCounter.cpp Moved source to src 2013-11-24 14:19:41 +00:00
MobProximityCounter.h Moved source to src 2013-11-24 14:19:41 +00:00
MobSpawner.cpp Moved source to src 2013-11-24 14:19:41 +00:00
MobSpawner.h Moved source to src 2013-11-24 14:19:41 +00:00
MonsterConfig.cpp Fixed loads more of them. 2013-11-26 17:14:46 +00:00
MonsterConfig.h Moved source to src 2013-11-24 14:19:41 +00:00
Noise.cpp Fixed clang warnings in Noise.cpp. 2013-12-20 10:11:33 +01:00
Noise.h Moved source to src 2013-11-24 14:19:41 +00:00
Piston.cpp merged in warnings changes 2013-12-22 16:11:34 +00:00
Piston.h Merge remote-tracking branch 'origin/master' into foldermove2 2013-11-24 14:37:03 +00:00
ProbabDistrib.cpp Moved source to src 2013-11-24 14:19:41 +00:00
ProbabDistrib.h Moved source to src 2013-11-24 14:19:41 +00:00
RCONServer.cpp Fixed loads more of them. 2013-11-26 17:14:46 +00:00
RCONServer.h Moved source to src 2013-11-24 14:19:41 +00:00
ReferenceManager.cpp Moved source to src 2013-11-24 14:19:41 +00:00
ReferenceManager.h Moved source to src 2013-11-24 14:19:41 +00:00
Root.cpp Fixed GetPhysicalRAMUsage on Linux 2014-01-01 11:18:56 +02:00
Root.h Added a HOOK_WORLD_STARTED hook and a cRoot::CreateAndInitializeWorld function for plugins. 2013-12-11 12:39:13 +01:00
Server.cpp Fixed favicons 2014-01-07 16:53:40 +00:00
Server.h Major refactoring of redstone 2014-01-10 20:31:05 +00:00
StackWalker.cpp Made cmake compilation possible on Windows. 2013-12-27 11:51:08 +01:00
StackWalker.h Moved source to src 2013-11-24 14:19:41 +00:00
StringCompression.cpp More MSVC warning fixes. 2014-01-07 17:07:49 +01:00
StringCompression.h Fixed loads more of them. 2013-11-26 17:14:46 +00:00
StringUtils.cpp Fixed AppendVPrintf() handling for large strings. 2014-01-08 14:23:15 +01:00
StringUtils.h Added Base64Encode(). 2014-01-07 12:36:36 +01:00
Tracer.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Tracer.h Moved source to src 2013-11-24 14:19:41 +00:00
Vector3d.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Vector3d.h Moved source to src 2013-11-24 14:19:41 +00:00
Vector3f.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Vector3f.h Moved source to src 2013-11-24 14:19:41 +00:00
Vector3i.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Vector3i.h Moved source to src 2013-11-24 14:19:41 +00:00
VoronoiMap.cpp Voronoi-related biomegens use the new cVoronoiMap class. 2013-11-27 21:42:34 +01:00
VoronoiMap.h Added missing files for Voronoi map generation. 2013-11-27 14:26:28 +01:00
WebAdmin.cpp fixed warnings in webadmin.cpp 2013-12-31 09:16:41 +01:00
WebAdmin.h Fixed getting configure button going to port 0. 2013-12-24 14:44:24 +01:00
World.cpp rewrote queue not to use promises for waits 2014-01-02 12:32:55 +00:00
World.h Exported cWorld::BroadcastBlockAction(). 2014-01-06 16:01:20 +01:00
XMLParser.h Moved source to src 2013-11-24 14:19:41 +00:00