Save our MongoDB oplog

This commit is contained in:
Nick Winter 2015-12-10 14:51:34 -08:00
parent c71975fd40
commit 4458a57771
2 changed files with 4 additions and 2 deletions

View file

@ -26,8 +26,9 @@ module.exports = class SimulateTabView extends CocoView
onLoaded: ->
super()
@render()
if (document.location.hash is '#simulate' or @options.level.get('type') is 'course-ladder') and not @simulator
@startSimulating()
# Save our MongoDB oplog!
#if (document.location.hash is '#simulate' or @options.level.get('type') is 'course-ladder') and not @simulator
# @startSimulating()
getRenderData: ->
ctx = super()

View file

@ -427,6 +427,7 @@ module.exports = class PlayLevelView extends RootView
shouldSimulate: ->
return true if @getQueryVariable('simulate') is true
return false # Save our MongoDB oplog!
stillBuggy = true # Keep this true while we still haven't fixed the zombie worker problem when simulating the more difficult levels on Chrome
defaultCores = 2
cores = window.navigator.hardwareConcurrency or defaultCores # Available on Chrome/Opera, soon Safari