Core/Application: Fix updater elapsed time

This commit is contained in:
SirLynix
2023-05-06 15:44:52 +02:00
parent 5e5a740f24
commit 9aeaaa9495
3 changed files with 14 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ namespace Nz
inline void ApplicationBase::AddUpdater(std::unique_ptr<ApplicationUpdater>&& functor)
{
auto& updaterEntry = m_updaters.emplace_back();
updaterEntry.lastUpdate = Time::Zero();
updaterEntry.lastUpdate = -Time::Nanosecond();
updaterEntry.nextUpdate = Time::Zero();
updaterEntry.updater = std::move(functor);
}