mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Disable background simulations while playing levels for now
This commit is contained in:
parent
2ecf6dfec6
commit
e5a68f1ae9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue