mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-30 08:57:00 +02:00
adjust timing
This commit is contained in:
parent
220145bd9b
commit
3c1892a7d2
@ -104,8 +104,8 @@ MapView::MapView(const Point & offset, const Point & dimensions)
|
|||||||
actions = std::make_shared<MapViewActions>(*this, model);
|
actions = std::make_shared<MapViewActions>(*this, model);
|
||||||
actions->setContext(controller->getContext());
|
actions->setContext(controller->getContext());
|
||||||
|
|
||||||
// catch min 10 frames
|
// catch min 6 frames
|
||||||
postSwipeCatchIntervalMs = static_cast<int>(10.0 * 1000.0 * (1.0 / settings["video"]["targetfps"].Float()));
|
postSwipeCatchIntervalMs = std::max(100, static_cast<int>(6.0 * 1000.0 * (1.0 / settings["video"]["targetfps"].Float())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapView::onMapLevelSwitched()
|
void MapView::onMapLevelSwitched()
|
||||||
|
Loading…
Reference in New Issue
Block a user