mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Add ?simulate=true option for testing background simulations
This commit is contained in:
parent
f43c3b0160
commit
80253305fb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue