fps made 15 for lower GPU load

- reinitialisation of cummulative_time for new model

CURA-7647
This commit is contained in:
saumya.jain 2023-12-21 10:32:49 +01:00
parent 113ad74e26
commit e2e94b7f6b
2 changed files with 5 additions and 4 deletions

View file

@ -137,12 +137,12 @@ Item
Timer
{
id: simulationTimer
interval: 1000 / 30
interval: 1000 / 15
running: false
repeat: true
onTriggered:
{
// divide by 1000 to accont for ms to s conversion
// divide by 1000 to account for ms to s conversion
const advance_time = simulationTimer.interval / 1000.0;
if (!UM.SimulationView.advanceTime(advance_time)) {
playButton.pauseSimulation();