Skip to content

Commit

Permalink
add(Core.zig): call to deviceTick after platform update
Browse files Browse the repository at this point in the history
  • Loading branch information
RonaldZielaznicki authored and slimsag committed Oct 21, 2024
1 parent f181ed0 commit 404cf1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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");

_ = try state.platform.update();
mach.sysgpu.Impl.deviceTick(state.device);
state.swap_chain.present();

// Update swapchain for the next frame
Expand Down

0 comments on commit 404cf1c

Please sign in to comment.