1
0
cuberite-2a/src/Simulator
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
..
CMakeLists.txt moved simulor to globs 2013-12-10 23:06:15 +00:00
DelayedFluidSimulator.cpp Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). 2013-12-20 16:01:34 +01:00
DelayedFluidSimulator.h Moved source to src 2013-11-24 14:19:41 +00:00
FireSimulator.cpp Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). 2013-12-20 16:01:34 +01:00
FireSimulator.h converted commneted paramater names to the unused macro 2013-12-22 13:46:55 +00:00
FloodyFluidSimulator.cpp Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT). 2013-12-20 16:01:34 +01:00
FloodyFluidSimulator.h Moved source to src 2013-11-24 14:19:41 +00:00
FluidSimulator.cpp Fix Unused Variable Warning at FluidSimulator.cpp line 169 and 176 2013-12-09 14:15:30 +00:00
FluidSimulator.h Moved source to src 2013-11-24 14:19:41 +00:00
NoopFluidSimulator.h fixed warnings in World.cpp 2013-12-31 09:16:42 +01:00
RedstoneSimulator.cpp Major refactoring of redstone 2014-01-10 20:31:05 +00:00
RedstoneSimulator.h Major refactoring of redstone 2014-01-10 20:31:05 +00:00
SandSimulator.cpp Moved source to src 2013-11-24 14:19:41 +00:00
SandSimulator.h converted commneted paramater names to the unused macro 2013-12-22 13:46:55 +00:00
Simulator.cpp Moved source to src 2013-11-24 14:19:41 +00:00
Simulator.h converted commneted paramater names to the unused macro 2013-12-22 13:46:55 +00:00
SimulatorManager.cpp Moved source to src 2013-11-24 14:19:41 +00:00
SimulatorManager.h Moved source to src 2013-11-24 14:19:41 +00:00
VaporizeFluidSimulator.cpp Moved source to src 2013-11-24 14:19:41 +00:00
VaporizeFluidSimulator.h Moved source to src 2013-11-24 14:19:41 +00:00