examples: boids: use std.log.info instead of std.debug.print
std.debug.print uses IO which depends on file system and thus needs support from OS, which dont have in freestanding targets (like WASM).
This commit is contained in:
parent
2b994d6b24
commit
f4de00d8b5
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ pub fn update(app: *App, engine: *mach.Engine) !bool {
|
||||||
|
|
||||||
app.frame_counter += 1;
|
app.frame_counter += 1;
|
||||||
if (app.frame_counter % 60 == 0) {
|
if (app.frame_counter % 60 == 0) {
|
||||||
std.debug.print("Frame {}\n", .{app.frame_counter});
|
std.log.info("Frame {}", .{app.frame_counter});
|
||||||
}
|
}
|
||||||
|
|
||||||
var command = command_encoder.finish(null);
|
var command = command_encoder.finish(null);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue