mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
use fps in calculation
This commit is contained in:
@@ -103,6 +103,9 @@ MapView::MapView(const Point & offset, const Point & dimensions)
|
||||
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
|
||||
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()));
|
||||
}
|
||||
|
||||
void MapView::onMapLevelSwitched()
|
||||
|
||||
Reference in New Issue
Block a user