core: Event loop rework (#5466)

* Event loop rework

* revert missed
This commit is contained in:
Vaxry 2024-04-07 03:31:51 +01:00 committed by GitHub
parent 9f1604e4b0
commit f2a848cbcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 281 additions and 7 deletions

View file

@ -6,6 +6,7 @@
#include "../helpers/AnimatedVariable.hpp"
#include "../helpers/BezierCurve.hpp"
#include "../helpers/Timer.hpp"
#include "eventLoop/EventLoopTimer.hpp"
class CWindow;
@ -32,7 +33,7 @@ class CAnimationManager {
std::vector<CBaseAnimatedVariable*> m_vAnimatedVariables;
std::vector<CBaseAnimatedVariable*> m_vActiveAnimatedVariables;
wl_event_source* m_pAnimationTick;
std::shared_ptr<CEventLoopTimer> m_pAnimationTimer;
float m_fLastTickTime; // in ms