chrono icon indicating copy to clipboard operation
chrono copied to clipboard

the visualization interface is not responding

Open wyj1111kkk opened this issue 10 months ago • 6 comments

Hi, when I try to run the demo_VEH_SCMTerrain_FEATire example, the visualization interface is not responding, is this due to my computer's lack of performance or something else?Do I need to increase the performance of my computer to solve this problem?

Image

wyj1111kkk avatar Feb 17 '25 08:02 wyj1111kkk

That demo is indeed quite slow (because of the FEA calculations). On my machine, it runs with a real-time factor of 1000 (that is, 1000 times slower than your wall clock). You can check what that value is on your machine: with the focus on the visualization window, press the "i" key and you will get a panel with simulation information, including the current RTF.

rserban avatar Feb 17 '25 10:02 rserban

I checked and my RTF value is over 6,000

wyj1111kkk avatar Feb 18 '25 09:02 wyj1111kkk

Did you build Chrono in Release?

rserban avatar Feb 18 '25 09:02 rserban

Yes, is there a difference between debug and release?

wyj1111kkk avatar Feb 18 '25 11:02 wyj1111kkk

Wouldn't release be a little more efficient?

wyj1111kkk avatar Feb 18 '25 12:02 wyj1111kkk

It's more than just "a little more efficient"; there is a significant difference in performance between Release and Debug builds. This is most likely due to your particular hardware. On my laptop (with a newer and better processor), I get an RTF of about 650.

One thing you can try (other than finding a better machine) is to set the number of OpenMP threads which can help some both the FEA and SCM calculations. Assuming you have at least 4 physical cores, try adding sys.SetNumThreads(4, 1, 1);

rserban avatar Feb 18 '25 14:02 rserban