Commit graph

17 commits

Author SHA1 Message Date
walterhiggins
32ae5a6da3 first phase of comments update 2013-02-05 20:49:09 +00:00
walterhiggins
97553d7da4 added default values for chessboard() 2013-02-05 20:47:54 +00:00
Alex Barnes
756a13d6fc Add some useful tools 2013-02-04 21:48:07 -06:00
walterhiggins
22add98d15 Correct handling of strokeWidth for vertical arcs 2013-02-03 20:19:58 +00:00
walterhiggins
ca821a696a rainbow.js shows an example of how to use the new arc() method 2013-02-03 12:09:45 +00:00
walterhiggins
86fd3c0a28 Reworked arc code - More versatile circles/arcs in horiz and vertical planes 2013-02-03 12:09:05 +00:00
walterhiggins
4a586a115c added hemispheres and blocks ids 2013-02-01 22:14:53 +00:00
walterhiggins
63712518dc optimized sphere and blocktype 2013-01-31 22:51:35 +00:00
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
walterhiggins
35e0910b8e Performance improvements and fix for issue #47 2013-01-30 22:48:37 +00:00
Chris Ruppel
01322d00cd Merge remote branch 'origin/master' into some-docs 2013-01-26 22:37:27 -06:00
walterhiggins
446ba9ad7b changed to and tweaked tabcomplete 2013-01-26 13:47:16 +00:00
Chris Ruppel
e0a1843de9 Docs for blocktype function. 2013-01-24 22:38:46 -06:00
walterhiggins
888ee6c208 renamed __self to self 2013-01-24 23:47:36 +00:00
walterhiggins
a8f0d0bdf9 load drone.js 2013-01-23 00:02:57 +00:00
walterhiggins
fa03eb6ccd fixed the letter 'v' 2013-01-22 00:00:35 +00:00
walterhiggins
17dddb1dc9 Reorganised directories to be more maven-like 2013-01-21 23:10:57 +00:00