leios / Fable.jl

General purpose animations via iterated function systems
MIT License
28 stars 4 forks source link

Rectangles not working on subsequent attempts for CPU #60

Closed leios closed 1 year ago

leios commented 1 year ago

If you create a fractal layer for a square or rectangle, the first run will generate a square, but any future runs will not:

julia> fl = FractalLayer(; H1 = square, ArrayType = Array);

julia> run!(fl);

julia> sum(fl.values)
73884

julia> reset!(fl);

julia> run!(fl);

julia> sum(fl.values)
0

If you add an @print statement to the iteration loop chaos kernel, things work again. Also: everything seems to work on the GPU.

leios commented 1 year ago

fixed as of #64