Execution time for pendulum demo

62 views
Skip to first unread message

hk

unread,
Sep 22, 2023, 6:06:11 AM9/22/23
to ProjectChrono
Hello,

I am just starting to use project chrono and I was surprised by the execution time for my simple model.
For comparison I ran the demo project test_demo_MBS_pendulum without the irrlicht stuff and was wondering if an execution time of ~70 seconds for 30 seconds of simulation time is to be expected? Or did I  overlook some important switch when building the lib or something like that?
I run Chrono 8.0.0 on an Ubuntu laptop with an AMD Ryzen 5 4500U.

I attached the source code file, which is just the demo file without irrlicht visualization.
demo_MBS_pendulum_no_irrlicht.cpp

Radu Serban

unread,
Sep 22, 2023, 7:54:08 AM9/22/23
to ProjectChrono

This demo should run much faster than real-time. Are you sure you built the code in Release mode?

--Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/eb7e1b26-fb8b-457a-bda3-d3ecd7087729n%40googlegroups.com.

hk

unread,
Sep 22, 2023, 8:40:44 AM9/22/23
to ProjectChrono
Haha, embarassing, sorry for my stupidity :)
I overlooked the default debug build, now it's more like I expected it to be!

Thanks a lot!

Derek McBlane

unread,
Sep 23, 2023, 8:22:58 PM9/23/23
to ProjectChrono
I'll share in the embarrassment; I also just started using this, found some demos incredibly slow, and didn't think to check the build configuration.  Thanks!
Reply all
Reply to author
Forward
0 new messages