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:
iddev5 2022-05-22 18:40:58 +05:30 committed by Stephen Gutekanst
parent 2b994d6b24
commit f4de00d8b5

View file

@ -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);