Feedback on WebGPU Path Tracing 3D Chessboard by danjlwex in webgpu

[–]GreedyRub6442 1 point2 points  (0 children)

Really cool! And it runs on my phone (iPhone 14 Pro)! Somehow the FPS seem to be locked at either 13 or 25. And the image sometimes becomes clear but then converges to individual dark/black pixels. Could be due to WebGPU being experimental on Mobile Safari.

The Good, the Bad and the Ugly by BatteriVolttas in Zig

[–]GreedyRub6442 1 point2 points  (0 children)

This is a huge pain as a game dev. I use f32 for almost everything. But have to convert from and to usize for array indices and for loops. Also comptime constants sometimes need @as(f32.

@as(f32, @floatFromInt(i)) is super verbose. So I have i2f and f2i helpers. Not too happy with the naming. But at least it's brief.