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. --Radu From: [email protected] <[email protected]> On Behalf Of lei wang Sent: Wednesday, November 1, 2023 10:15 AM To: ProjectChrono <[email protected]> Subject: Re: [chrono] Chrono Running lag 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. 在2023年11月1日星期三 UTC+8 15:50:30<Radu Serban> 写道: 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: [email protected] <[email protected]> On Behalf Of ?? Sent: Wednesday, November 1, 2023 7:27 AM To: ProjectChrono <[email protected]> Subject: [chrono] Chrono Running lag 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 [https://groups.google.com/group/projectchrono/attach/819ac211680fd/image001.png?part=0.1&view=1][https://groups.google.com/group/projectchrono/attach/819ac211680fd/image002.png?part=0.2&view=1] demo_VEH_HMMWV [https://groups.google.com/group/projectchrono/attach/819ac211680fd/image003.png?part=0.3&view=1][https://groups.google.com/group/projectchrono/attach/819ac211680fd/image004.png?part=0.4&view=1] demo_VEH_M113 [https://groups.google.com/group/projectchrono/attach/819ac211680fd/image005.png?part=0.5&view=1][https://groups.google.com/group/projectchrono/attach/819ac211680fd/image006.png?part=0.6&view=1] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/4527ef26-ae14-4ba8-9304-f021a32de61dn%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/4527ef26-ae14-4ba8-9304-f021a32de61dn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/bdcd1318-0037-40c6-9be7-a522728d0cean%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/bdcd1318-0037-40c6-9be7-a522728d0cean%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/PH0PR06MB8237FB3980F58C736E4562B0A7A7A%40PH0PR06MB8237.namprd06.prod.outlook.com.
