I wrote a Kojo script, which draws a graph of the sine function.--
It is awfully slow (about 40 seconds for the graph).
I suppose, that the graph is composed of 800 little line segments, which makes it so slow.
Is there a more efficient way to do it?
Christoph
You received this message because you are subscribed to the Google Groups "kojo-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kojo-user+unsubscribe@googlegroups.com.
To post to this group, send email to kojo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kojo-user/abfc700f-c05b-4ac2-9c83-bc6d1c220e68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hmmm. On my (rather old!) machine (Intel Core 2 Duo CPU P8600 @ 2.40GHz with lots of RAM), your code runs in about 2 seconds. If I change setAnimationDelay from 10 to 0, it runs pretty much instantaneously.
My Kojo Version (this version is currently available on Kojo-Web):
2.4.06 r37 Build date: 16 Apr 2015
What kind of hardware are you on? What Kojo version are you using?
- Lalit
On Thu, Apr 16, 2015 at 3:18 PM, Christoph Knabe <kn...@beuth-hochschule.de> wrote:
I wrote a Kojo script, which draws a graph of the sine function.
It is awfully slow (about 40 seconds for the graph).
I suppose, that the graph is composed of 800 little line segments, which makes it so slow.
Is there a more efficient way to do it?
Christoph
--
You received this message because you are subscribed to the Google Groups "kojo-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kojo-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kojo-user/3cf0a8d8-d66b-4c85-bb95-5007d546c699%40googlegroups.com.
Really interesting.