瀏覽代碼

adjust timing

Michael 2 年之前
父節點
當前提交
3c1892a7d2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/mapView/MapView.cpp

+ 2 - 2
client/mapView/MapView.cpp

@@ -104,8 +104,8 @@ MapView::MapView(const Point & offset, const Point & dimensions)
 	actions = std::make_shared<MapViewActions>(*this, model);
 	actions->setContext(controller->getContext());
 
-// catch min 10 frames
-	postSwipeCatchIntervalMs = static_cast<int>(10.0 * 1000.0 * (1.0 / settings["video"]["targetfps"].Float()));
+	// catch min 6 frames
+	postSwipeCatchIntervalMs = std::max(100, static_cast<int>(6.0 * 1000.0 * (1.0 / settings["video"]["targetfps"].Float())));
 }
 
 void MapView::onMapLevelSwitched()