Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/07/2010(UTC) Posts: 437 Location: Beer-Sheva Was thanked: 520 time(s) in 288 post(s)
|
Hi Jean The program will run faster if the code is a little change 0Anim XFR1.sm (14kb) downloaded 28 time(s).Edited by user 22 August 2016 04:37:12(UTC)
| Reason: Not specified
|
1 user thanked Ber7 for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Thanks Ber7 for the code. On that one "0Anim CONVOLUTION" ... can't accumulate the path ? Cheers, Jean 0Anim CONVOLUTION.sm (19kb) downloaded 26 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/07/2010(UTC) Posts: 437 Location: Beer-Sheva Was thanked: 520 time(s) in 288 post(s)
|
Instead tmin = 0 substitute the tmin=1 0Anim XFR1.sm (14kb) downloaded 27 time(s).
|
1 user thanked Ber7 for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
0Anim CONVOLUTION .sm has been doctored for the accumulated path. Plots are difficult to size, work sheet is Autocal OFF Jean 0Anim CONVOLUTION.sm (31kb) downloaded 26 time(s).
|
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,616 Was thanked: 1978 time(s) in 666 post(s)
|
Thank you for interesting examples! I've checked your worksheets and see one place for simple optimization applicable for most of them. Often you use procedures to draw static set of points for all frames of animation. Procedures (when line is used right after the definition operator) calculated on every call - SMath Studio do not precalculate their values. So, you can speed up calculation simply by line like this: This line asks the program to calculate procedure and store its values into the initial procedure variable. So, we have only one calculation of static shape for the whole animation! I've corrected your examples according to the hint above and tested them in both versions: 0.97.5346 - the one you have used to create files and 0.98.6077 - the latest nightly build. Here are the results: Final versions of the worksheets: Best regards. Edited by user 22 August 2016 19:28:29(UTC)
| Reason: Not specified
|
3 users thanked Andrey Ivashov for this useful post.
|
on 22/08/2016(UTC), on 22/08/2016(UTC), on 23/08/2016(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Thanks Andrey: I toke good note and adapted.
Jean
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.