[Fluxus] Hi all

lucas samaruga samarugalucas at gmail.com
Wed Sep 10 11:38:47 PDT 2008


Thanks for the comments
I have to be more careful.
I thought that it might be good to have a mechanism that can remedy such
errors in real time.

Greetings
Lucas


2008/9/10, Claude Heiland-Allen <claudiusmaximus at goto10.org>:
>
> lucas samaruga wrote:
>
>> (define (render n f)
>>    (cond ((not (zero? n))
>>
>
> Small point, what happens if you have n < 0 ?
>
>         (build-sphere 10 10)
>>
>
> [snippy]
>
>             (render (- n 1) f)
>>            (render (- n 1) f)
>>            (render (- n 1) f)
>>            (render (- n 1) f)
>>            (render (- n 1) f)
>>            (render (- n 1) f)
>>
>
> [snippy]
>
> At each level you have a sphere, and also 6 of the next level down.  So as
> you increase the level, you have 6x the number of spheres, which goes  up
> pretty quickly.
>
>  ;(render 10 4) ; for a hang
>>
>
> This gives you over 6^10 spheres, which is quite a lot (more than 60
> million)!
>
> So not surprising you get problems :)
>
> (for comparison, I have a fractal I wrote in C, with "only" 1 million
> single points, and that takes about 1/2 a second per frame to draw).
>
>
> Claude
> --
> http://claudiusmaximus.goto10.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20080910/ba816801/attachment.html>


More information about the Fluxus mailing list