Heightmap to brick converter?


RE: Heightmap to brick converter?
#16
(2018-06-21, 5:50)Jaco van der Molen Wrote:
(2018-06-20, 17:18)Roland Melkert Wrote: Should all be possible directly in LDCad, but with 1.6 the main problem is the 'slowness' of the addNewRef function as it takes ~1ms and currently the maximum runtime of a script is limited to 2000ms. I will remove that limitation in 1.6c though (if ever released, so 2.0 otherwise).

OK, so that means the current limit is about 2000 bricks or a bit less?

It depends on multiple things, but the bottle neck is clearly the addNewRef.

I compiled a version without the max execution time, and played around with diamond square.

   

This consists of 36000 bricks and, the script took about 35 seconds.


2.0's scripting environment will be much more suited for these kinds of things as the one in 1.6 is mostly optimized for animations.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Heightmap to brick converter? - by Roland Melkert - 2018-06-21, 22:17

Forum Jump:


Users browsing this thread: 1 Guest(s)