store last render time in RenderTicker

This commit is contained in:
Nick Fisher
2025-05-09 11:19:13 +08:00
parent abde201bda
commit 8a6ba637a7

View File

@@ -36,7 +36,7 @@ namespace thermion
/// @brief
/// @param frameTimeInNanos
void render(
bool render(
uint64_t frameTimeInNanos
);
@@ -61,6 +61,7 @@ namespace thermion
filament::Renderer *mRenderer = nullptr;
std::vector<AnimationManager*> mAnimationManagers;
std::vector<std::pair<filament::SwapChain*, std::vector<filament::View*>>> mRenderable;
std::chrono::high_resolution_clock::time_point mLastRender;
};
}