Core/ApplicationBase: Add support for updaters with intervals

This commit is contained in:
SirLynix
2023-04-23 19:45:33 +02:00
parent a55560d1ca
commit de5e7bd8a8
17 changed files with 253 additions and 39 deletions

View File

@@ -55,7 +55,7 @@ int main()
sound.Play();
Nz::MillisecondClock clock;
app.AddUpdater([&](Nz::Time /*elapsedTime*/)
app.AddUpdaterFunc([&]
{
std::this_thread::sleep_for(std::chrono::milliseconds(1000 / 30));