This repository was archived by the owner on Sep 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Benchmarks
Muqsit edited this page Jun 21, 2018
·
12 revisions
WorldStyler iterates over blocks on a much lower level compared to most of the alternatives. It makes use of PocketMine's SubChunkIteratorManager and iterates over subchunks to get and set blocks.
This reduces execution of many unneeded (unneeded in our case) block checks and updates. This also means that setting blocks in an area will NOT schedule any block or neighboring block updates. The block cache and chunk cache of the level the subchunk is in is also not updated everytime a block is set. Rather, it's updated after all blocks have been set.
Some benchmarks (in order of processors) below...
- 15,240,720 blocks
//setin 65.61 seconds.
- 5,658,336 blocks
//setin 8.18 seconds. - 5,658,336 blocks
//replacein 12.88 seconds.
- 1,943,040 blocks
//setin 1.09 seconds.
- 29,718,612 blocks
//setin 16.16 seconds. - 29,718,612 blocks
//replacein 21.99 seconds.
- 1,004,004 blocks
//setin 1.34 seconds.
- 256,768,512 blocks
//setin 172.81 seconds.





