Add ?simulate=true option for testing background simulations

This commit is contained in:
Nick Winter 2015-12-02 14:57:06 -08:00
parent f43c3b0160
commit 80253305fb

View file

@ -424,7 +424,7 @@ module.exports = class PlayLevelView extends RootView
@simulator.fetchAndSimulateOneGame()
shouldSimulate: ->
return false # Performance is too bad right now, gotta fix it first.
return @getQueryVariable('simulate') is true # Performance is too bad right now, gotta fix it first.
# Crude heuristics are crude.
defaultCores = 2
cores = window.navigator.hardwareConcurrency or defaultCores # Available on Chrome/Opera, soon Safari