add(Core.zig): call to deviceTick after platform update

This commit is contained in:
Ronald M Zielaznicki 2024-10-21 00:18:09 -04:00 committed by Stephen Gutekanst
parent f181ed08d5
commit 404cf1c42a

View file

@ -611,6 +611,7 @@ fn presentFrame(core: *Mod, entities: *mach.Entities.Mod) !void {
if (num_windows > 1) @panic("mach: Core currently only supports a single window"); if (num_windows > 1) @panic("mach: Core currently only supports a single window");
_ = try state.platform.update(); _ = try state.platform.update();
mach.sysgpu.Impl.deviceTick(state.device);
state.swap_chain.present(); state.swap_chain.present();
// Update swapchain for the next frame // Update swapchain for the next frame