Actin  Version 5.5.5
Software for Robotics Simulation and Control
Changing Thread Update Rates

How to Change the GUI Thread Update Rates

The update rates of the GUI and of the simulation are configurable in the Actin Viewer. To change the rates, right click on the bottom corner of the viewer, and click "Edit thread update rates...".

Bottom Right Context Menu

This will show the thread update GUI.

Update Rate GUI

Here the values can be edited.

How to Access the GUI Thread Update Rates From a Plugin

To access the values from a plugin, access throught the viewer parameters from the EcSystemSimulation.

    EcReal rate = 0.0;
       EcSharedMutexSharedLock lock;
       const EcSystemSimulation* pSimulation = paramPtr<Ec::SystemSimulation, EcSystemSimulation>();
       rate = pSimulation->viewerParameters().simulationUpdateRate();