News for hackers. Stuff that matters.
Re:Show HN: Ambient, a multiplayer game engine and platform ... by Philpax on Wednesday October 04, 2023 @10:56AM (#37766100)
Yeah - unfortunately, Chrom[e|ium] on Linux doesn't support WebGPU yet: https://github.com/gpuweb/gpuweb/wiki/Implementation-Status#...

As one of the folks using Linux, I'm hoping that this will get resolved sooner rather than later, too. (Well, actually - I'd prefer Firefox get support, but that looks like it might take longer. Alas.)

Re:Show HN: Ambient, a multiplayer game engine and platform ... by rob74 on Wednesday October 04, 2023 @11:02AM (#37766186)
Be that as it may, but maybe you should show some kind of error message so the user knows what's up instead of showing "Loading..." until they get bored of looking at a black screen - not everyone is savvy enough to check the console messages...
Re:Show HN: Ambient, a multiplayer game engine and platform ... by Philpax on Wednesday October 04, 2023 @11:05AM (#37766241)
Absolutely, yeah. I've actually just opened an issue for this: https://github.com/AmbientRun/Ambient/issues/1038

Rest assured we'll have this sorted for the next release; we were aware that Linux/Chrome/WebGPU were incompatible, but we didn't bubble that error up correctly. Our bad!

Re:Show HN: Ambient, a multiplayer game engine and platform ... by FredrikNoren on Wednesday October 04, 2023 @11:31AM (#37766612)
It's fixed on the website now as well (it'll show you a nice warning screen on non-webgpu browsers, instead of just loading forever)
Re:Show HN: Ambient, a multiplayer game engine and platform ... by riskable on Wednesday October 04, 2023 @12:13PM (#37767303)
I have enabled webgpu in Firefox (set `dom.webgpu.enabled` to true) but it just says, "your browser does not support WebGPU". No, actually it does support WebGPU it's just that you're not detecting that properly.
Re:Show HN: Ambient, a multiplayer game engine and platform ... by FredrikNoren on Wednesday October 04, 2023 @12:32PM (#37767624)
Hm yeah, we need to fix the detection as part of instantiation, which happens in the engine. I'm adding a "Try anyway" button for you in the meantime, it should be up in a couple of minutes.
Re:Show HN: Ambient, a multiplayer game engine and platform ... by Philpax on Wednesday October 04, 2023 @12:45PM (#37767874)
We've just tested internally with Firefox nightly with WebGPU enabled (you should also be able to test this with the fix Fredrik just pushed out), but it doesn't seem to work - Firefox's WebGPU implementation doesn't implement enough of the spec [0] to be able to run our renderer.

As I mentioned in another comment, we're considering adding a fallback renderer, but our hope is that Firefox will be able to complete its implementation sooner rather than later - as a Firefox user, I would much rather use it than Chrome myself!

[0]: https://github.com/gpuweb/gpuweb/wiki/Implementation-Status#...