Route platform frame hooks through services

This commit is contained in:
2026-06-03 04:41:01 +02:00
parent 22006eaf47
commit dd641c047b
10 changed files with 85 additions and 16 deletions

View File

@@ -8,6 +8,8 @@ extern std::deque<std::packaged_task<void()>> main_tasklist;
extern std::mutex main_task_mutex;
void destroy_window();
void win32_update_fps(int frames);
void win32_update_stylus(float dt);
namespace {
@@ -168,6 +170,16 @@ public:
(void)visible;
}
void update_platform_frame(float delta_time_seconds) override
{
win32_update_stylus(delta_time_seconds);
}
void report_rendered_frames(int frames) override
{
win32_update_fps(frames);
}
void display_file(std::string_view path) override
{
(void)path;