in reply to The horribly slow Julia set viewer with the extremely inefficient plotting method
...yeah...you are pushing the calculation limits of perl by doing 500 updates on the slightest mouse motion....this app seems simple enough.....you have the prototype in Perl....now convert it to c for speed..... the gtk+ c tutorial is not too hard.
...if you want to keep Perl, but speed it up, ...... stop updating ALL rectangles everytime... blank it out, and as you fill in color, at 100 rectangles at a time, leave them set ..... so you can minimize the number being dynamically changed from 500 down to 100 or even 50
.... if i were doing it, i would shove the 500 initial rectangles into an array, and loop thru them, say 50 or 100 at a time, and see the effect..... a big circular array of rects
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The horribly slow Julia set viewer with the extremely inefficient plotting method
by kikuchiyo (Hermit) on Dec 17, 2009 at 15:11 UTC | |
by kikuchiyo (Hermit) on Dec 17, 2009 at 17:01 UTC | |
by zentara (Cardinal) on Dec 17, 2009 at 17:37 UTC |