Chrono Running lag

111 views
Skip to first unread message

王磊

unread,
Nov 1, 2023, 2:27:19 AM11/1/23
to ProjectChrono

Hi, everyone

I'm using pychrono, but I'm having some problems:

My computer hardware environment:12th Gen Intel(R) Core(TM) i7-12700H、computer memory module:16G、Samsung SSD 980 PRO 1TB、NVIDIA GeForce RTX 3060 Laptop GPU

My computer software environment is windows11 Pro 64-bit, running under vs2022 64-bit Debug

When I use some of the demos that come with the chrono vehicle module directly, I often get stuck and Windows refresh slowly, such as demo_VEH_CityBus, demo_VEH_M113, etc.

The following figure shows some runtime interfaces and parameters

I hope you can give me some advice and look forward to your reply.

demo_VEH_CityBus

citybus.jpgcitybus-run.jpg


demo_VEH_HMMWV

H.jpgH-run.jpg

demo_VEH_M113

M113.jpgM113-run.jpg


I need your help

Thanks

leiw

Radu Serban

unread,
Nov 1, 2023, 3:50:30 AM11/1/23
to ProjectChrono

Leiv,

 

Simply build your code in Release (not Debug) and you will see significantly faster simulations.

By the way, you are not using PyChrono (which is a set of wrappers around the C++ libraries to allow using Chrono from Python).

 

--Radu

 

From: projec...@googlegroups.com <projec...@googlegroups.com> On Behalf Of ??
Sent: Wednesday, November 1, 2023 7:27 AM
To: ProjectChrono <projec...@googlegroups.com>
Subject: [chrono] Chrono Running lag

 

Hi, everyone

I'm using pychrono, but I'm having some problems:

My computer hardware environment12th Gen Intel(R) Core(TM) i7-12700Hcomputer memory module16GSamsung SSD 980 PRO 1TBNVIDIA GeForce RTX 3060 Laptop GPU

My computer software environment is windows11 Pro 64-bit, running under vs2022 64-bit Debug

When I use some of the demos that come with the chrono vehicle module directly, I often get stuck and Windows refresh slowly, such as demo_VEH_CityBus, demo_VEH_M113, etc.

The following figure shows some runtime interfaces and parameters

I hope you can give me some advice and look forward to your reply.

demo_VEH_CityBus

 

demo_VEH_HMMWV

demo_VEH_M113

 

I need your help

Thanks

leiw

--
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/4527ef26-ae14-4ba8-9304-f021a32de61dn%40googlegroups.com.

lei wang

unread,
Nov 1, 2023, 5:14:30 AM11/1/23
to ProjectChrono
Hello ,

First of all, thank you for your answer. It was very helpful,It does have a noticeable effect in the release version,However, demo_VEH_M113 will still run stutch, is there a solution for this?
One more. How do I Debug to make sure it doesn't run out.
Since I am not familiar with python, I will increase my learning of PyChrono if I can run faster simulations with PyChrono under Debug.
I look forward to your response.

Thanks,
leiw.

Radu Serban

unread,
Nov 1, 2023, 9:57:08 AM11/1/23
to ProjectChrono

Chrono makes no real-time guarantees.  Depending on model complexity, solver and integrator settings, and many other factors, some simulations will run faster, others slower. While a wheeled vehicle modeled through Chrono::Vehicle will likely run in (soft) real-time on commodity hardware, that’s certainly not the case with a model as complex as a tracked vehicle. 

 

Debug code will *always* run slower that code built in Release. 

 

As for using PyChrono, that will *not* give you any additional performance! As I mentioned before, PyChrono wraps around the C++ libraries. If anything, it may be very slightly slower (depending how much work you do in the interpreted Python layer).  And using Python will definitely not allow you to debug Chrono code.

Reply all
Reply to author
Forward
0 new messages