module: remove dispatchNoError, better loop implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
5737c62171
commit
af3c1e9155
6 changed files with 95 additions and 42 deletions
|
|
@ -190,7 +190,7 @@ fn tick(
|
|||
engine.send(.begin_pass, .{gpu.Color{ .r = 1.0, .g = 1.0, .b = 1.0, .a = 1.0 }});
|
||||
sprite_mod.send(.render, .{@intFromEnum(Pipeline.default)});
|
||||
engine.send(.end_pass, .{});
|
||||
engine.send(.present, .{}); // Present the frame
|
||||
engine.send(.frame_done, .{}); // Present the frame
|
||||
|
||||
// Every second, update the window title with the FPS
|
||||
if (game.state().fps_timer.read() >= 1.0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue