Merge pull request #69 from AAMasters/develop

Less cycles to restart the plotter
This commit is contained in:
benme authored and GitHub committed 2019-06-24 21:14:11 -03:00
commit e20466a1e9
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -113,7 +113,7 @@ function newRestartSimulation () {
thisObject.status = 'Restarting'
await graphQlRestartSimulation(simulationParams)
thisObject.status = 'Calculating'
counterTillNextState = 2000
counterTillNextState = 250
} else {
thisObject.status = 'Error'
counterTillNextState = 500
@@ -165,7 +165,7 @@ function newRestartSimulation () {
case 'Calculating':
thisObject.status = 'Refreshing'
turnOffProductCards()
counterTillNextState = 250
counterTillNextState = 50
break
case 'Refreshing':
thisObject.status = 'Ready'
@@ -276,3 +276,4 @@ function newRestartSimulation () {
browserCanvasContext.fillText(label, labelPoint.x, labelPoint.y)
}
}
+1 -1
View File
@@ -1730,7 +1730,7 @@ function newStrategyPartConstructor () {
floatingObject.targetFriction = FRICTION
floatingObject.friction = INITIAL_FRICTION
floatingObject.initializeMass(20)
floatingObject.initializeMass(50)
floatingObject.initializeRadius(35)
floatingObject.initializeImageSize(60)
floatingObject.initializeFontSize(10)