This repository has been archived on 2021-07-14. You can view files and clone it, but cannot push or open issues or pull requests.
scriptcraft/src/main/javascript
Kyle Howells 7a32a646cc More efficient box0()
Infinitely faster box0() function.
Box has to create every block inside the space specified, however, box0() only builds walls around things so seems sensible that it should do less work.
However, under the old functions way of doing things it did almost twice as much work.
For small objects this isn't noticed very much, however it can have a big impact on performance!

My use case for this was a 500 wide, 70 high and 500 deep iron wall I wanted to act as the city wall. Trying to make this resulted in 2 odd effects. I first made one wall by calling box(42, 250, 70, 1) and laying it out myself. This took a few seconds. Then I decided to save time I would fly to the edge and create it with box0(). box0(42, 500, 70, 500) completely froze minecraft and slowed my computer. It then preceded to take 20 minutes before I decided to give up and close the server.
After restarting it I had a semi complete giant "solid" block. This made me dig into the Drones code.


Getting to the point: with the old way of doing things a GIANT wall takes over 20 minutes to make. this new version takes under 10 seconds.

(explanation not technically needed just wanted to demonstrate it does make a massive difference)
2013-01-31 00:55:41 +00:00
..
alias better tab completion on /jsp issue #35 2013-01-26 17:49:11 +00:00
arrows renamed __self to self 2013-01-24 23:46:28 +00:00
chat renamed __self to self 2013-01-24 23:46:28 +00:00
core Performance improvements and fix for issue #47 2013-01-30 22:48:37 +00:00
drone More efficient box0() 2013-01-31 00:55:41 +00:00
events Reorganised directories to be more maven-like 2013-01-21 23:10:57 +00:00
ext Reorganised directories to be more maven-like 2013-01-21 23:10:57 +00:00
homes renamed __self to self 2013-01-24 23:47:36 +00:00
minigames Performance improvements and fix for issue #47 2013-01-30 22:48:37 +00:00
signs renamed __self to self 2013-01-24 23:47:36 +00:00
utils renamed __self to self and updated README 2013-01-24 23:44:15 +00:00