1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Separated timer updates from rendering in adventure map and town screen

This commit is contained in:
Ivan Savenko
2023-05-13 17:24:18 +03:00
parent 3ecdff2a21
commit fa496628f2
8 changed files with 27 additions and 13 deletions

View File

@ -89,7 +89,7 @@ std::shared_ptr<IMapRendererContext> MapViewController::getContext() const
return context;
}
void MapViewController::updateBefore(uint32_t timeDelta)
void MapViewController::tick(uint32_t timeDelta)
{
// confirmed to match H3 for
// - hero embarking on boat (500 ms)
@ -158,7 +158,7 @@ void MapViewController::updateBefore(uint32_t timeDelta)
}
}
void MapViewController::updateAfter(uint32_t timeDelta)
void MapViewController::afterRender()
{
if(movementContext)
{