A2Plus & Animator macro: extremely slow

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: A2Plus & Animator macro: extremely slow

Post by bambuko »

About 44 seconds for full 360 deg rotation using Assembly3 without acceleration (.gif below has been created using single shots)

Using:

Code: Select all

Quad-Core Intel® Core™ i5-4690K CPU @ 3.50GHz
NVIDIA® GeForce® GTX® 1650 SUPER
15.5 GiB memory
112.8 GB SSD
Image
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: A2Plus & Animator macro: extremely slow

Post by adrianinsaval »

seems like assembly 3 solver has better performance since that model is more complex, would be nice to have a comparison of the same model but done on assembly 3.
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: A2Plus & Animator macro: extremely slow

Post by bambuko »

Just to reiterate - gif is much faster than what's happening on my screen in real life :mrgreen:
I will (when I have a minute) have a go at doing original model in Ass 3
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: A2Plus & Animator macro: extremely slow

Post by adrianinsaval »

bambuko wrote: Wed Mar 02, 2022 1:14 pm Just to reiterate - gif is much faster than what's happening on my screen in real life :mrgreen:
I will (when I have a minute) have a go at doing original model in Ass 3
Yes, but you said it takes 44s, my more powerful computer took as long on a much simpler model. If you don't mind sharing I'd like to test your model on my pc too :) (also, that looks like good splashcreen material ;) )
Did you run the animation using rt branch or master?
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: A2Plus & Animator macro: extremely slow

Post by bambuko »

adrianinsaval wrote: Wed Mar 02, 2022 1:34 pm Yes, but you said it takes 44s, my more powerful computer took as long on a much simpler model...
that's why I posted here ;)

adrianinsaval wrote: Wed Mar 02, 2022 1:34 pm ...If you don't mind sharing I'd like to test your model on my pc too :)...
sure - I will try to select something slightly simpler and easier to share and compare

adrianinsaval wrote: Wed Mar 02, 2022 1:34 pm ...(also, that looks like good splashcreen material ;) )
agree, but it may not appeal to wider audience, being a bit 19th century tech :lol:

adrianinsaval wrote: Wed Mar 02, 2022 1:34 pm ...Did you run the animation using rt branch or master?
I only use RT Link branch for my everyday modelling
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: A2Plus & Animator macro: extremely slow

Post by bambuko »

Olav wrote: Mon Feb 21, 2022 4:59 pm ...I was experimenting with animating assemblies...
Just finished doing the original files in Assy 3
I make it something like under 8 seconds for full 360 deg
small.gif
small.gif (450.99 KiB) Viewed 1118 times
I am attaching below assembly files and macro (created by edwilliams16 thank you!) used to animate
bambuko_assy_test.zip
(112.79 KiB) Downloaded 25 times
and just for the record:

Code: Select all

OS: elementary OS 6.1 JAlnir (Pantheon/pantheon)
Word size of FreeCAD: 64-bit
Version: 2022.111.30764 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: ef3092bcbca5475eff4eb7ff7933eb3e9bbbe4b9
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United Kingdom (en_GB)
Last edited by bambuko on Wed Mar 02, 2022 4:13 pm, edited 3 times in total.
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: A2Plus & Animator macro: extremely slow

Post by adrianinsaval »

bambuko wrote: Wed Mar 02, 2022 3:29 pm Just finished doing the original files in Assy 3
I make it something like under 8 seconds for full 360 deg
small.gif
something I forgot to ask, how many frames do you use for the full turn? Can you share fcstd for this one?
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: A2Plus & Animator macro: extremely slow

Post by bambuko »

adrianinsaval wrote: Wed Mar 02, 2022 4:01 pm ... something I forgot to ask, how many frames do you use for the full turn? Can you share fcstd for this one?
I was attaching it while you were posting :mrgreen:
.gif is crappy to squeeze into allowed attachment size
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: A2Plus & Animator macro: extremely slow

Post by adrianinsaval »

In the macro you have a step size of 10, the example used step size of 1, it's expected that it would be an order of magnitude faster like that. I'll check how it performs with stepsize 1 on my computer tonight, it might end up being comparable to A2+ then.
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: A2Plus & Animator macro: extremely slow

Post by bambuko »

adrianinsaval wrote: Wed Mar 02, 2022 4:32 pm In the macro you have a step size of 10, the example used step size of 1...
sorry didn't notice this.
on my PC changing the step to 1 deg (from 10 deg) increases the time for full 360 deg rotation to about 95 seconds,
but ... it is not "extremely slow" as per the title of this thread :mrgreen:
It is actually nice and smooth ;)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
Post Reply