summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not GetBlock individually in simulatorsTiger Wang2020-08-041-1/+2
| | | | | * Have the simulator manager get the block and pass it on + Add new overload for WakeUp, called when the manager wakes face positions
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-21/+15
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Add WakeUp/AddBlock distinctionTiger Wang2020-08-021-1/+5
| | | | | | * WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
* Use SimulateChunk in redstone simulatorTiger Wang2020-07-261-11/+8
| | | | | | + Improved performance, reduces bottleneck in chunkmap lookup * Stop allocating and throwing away lots of small vectors in Update/GetValidSourcePositions return values - Remove unused GetPowerLevel virtual
* ಠ_ಠ (#4660)Tiger Wang2020-04-161-0/+2
| | | + Provisional handling for observers
* Using Super.Mattes D2020-04-161-4/+6
|
* Filter blocks to add to redstone sim's wake queue (#4621)peterbell102020-04-051-4/+1
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-2/+2
|
* Allocate redstone component handlers upfrontpeterbell102017-07-171-1/+4
|
* Revert "Made redstone handlers static"Lukas Pioch2016-07-011-3/+1
|
* Made redstone handlers staticTiger Wang2016-05-281-1/+3
| | | | * Improvements to performance? Maybe. Can't hurt (he says).
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Reorganised the redstone simulatorTiger Wang2015-12-181-0/+167
-> Many thanks to @worktycho for the idea, and @Haxi52 for the implementation plan! * Uses classes and inheritance now * Speed should be improved