Disable background simulations while playing levels for now

This commit is contained in:
Nick Winter 2015-12-02 12:07:43 -08:00
parent 2ecf6dfec6
commit e5a68f1ae9

View file

@ -424,6 +424,7 @@ module.exports = class PlayLevelView extends RootView
@simulator.fetchAndSimulateOneGame()
shouldSimulate: ->
return false # 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