From 9fa10fe2b2fda534643a5922b19ad0150df85b9f Mon Sep 17 00:00:00 2001 From: Seth Call Date: Tue, 28 Apr 2015 11:28:10 -0500 Subject: [PATCH] * temporarily disable high latency --- .../javascripts/dialog/singlePlayerProfileGuard.js.coffee | 2 +- web/app/assets/javascripts/wizard/gear_utils.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/assets/javascripts/dialog/singlePlayerProfileGuard.js.coffee b/web/app/assets/javascripts/dialog/singlePlayerProfileGuard.js.coffee index d94a21d6a..4c54d1a06 100644 --- a/web/app/assets/javascripts/dialog/singlePlayerProfileGuard.js.coffee +++ b/web/app/assets/javascripts/dialog/singlePlayerProfileGuard.js.coffee @@ -42,7 +42,7 @@ context.JK.SinglePlayerProfileGuardDialog = class SinglePlayerProfileGuardDialog latency = '?' if canPlayWithOthers.audioLatency? - latency = canPlayWithOthers.audioLatency + latency = canPlayWithOthers.audioLatency.toFixed(2) @audioLatency.text("#{latency} milliseconds.") diff --git a/web/app/assets/javascripts/wizard/gear_utils.js b/web/app/assets/javascripts/wizard/gear_utils.js index c2b733e68..052eb738b 100644 --- a/web/app/assets/javascripts/wizard/gear_utils.js +++ b/web/app/assets/javascripts/wizard/gear_utils.js @@ -47,6 +47,9 @@ var networkScore = context.jamClient.GetNetworkTestScore(); var badNetworkScore = networkScore < 2; + // for now, ignore latency + highLatency = false + return { canPlay: !isNoInputProfile && !highLatency, isNoInputProfile: isNoInputProfile,