I am developing a plugin using the .NET API. My application needs to run multiple simulations to gather results. However, the simulation speed is limited by the animation that occurs during execution. To speed up the process, I would like to disable simulation rendering.
I found the IsAnimating property in the .NET API documentation, which, according to the description, should control whether the 3D scene is rendered during the simulation. However, even when I set this value to false, the simulation is still rendered.
Does anyone know why this might not be working or have alternative solutions to disable simulation rendering?
Disabling rendering likely won’t improve the speed that much. When running at max speed, the view is rendered only once per (real time) second. For example, if your rendering takes maybe 20 milliseconds, then completely disabling that would only give you 20 / 1000 * 100% = 2% speed up.
I am using Visual Components connected to another application via the OPC UA interface. To synchronize times and the periodicity of transmitted messages, I need almost 6 hours to reach 50 minutes of simulation.
I require the values of certain properties and some statistics for at least 3 hours, but before completing the first hour, the program crashes and throws exceptions. Therefore, I need to maximize performance.
Based on some advice from (Optimizing Simulation Performance | Visual Components Academy), my idea is to disable the simulation view, avoid rendering, or set it to the lowest quality to reduce memory usage, as the simulation currently consumes almost 50% of my laptop’s memory.
I am particularly interested in this topic. Thank you for your help.