News for hackers. Stuff that matters.
Re:Developing Games on Linux: An Interview with Little Red D... by pjmlp on Friday June 25, 2021 @06:19AM (#27628969)
It matters a lot, because in native games you can easily check if the 3D acceleration is present, not so on Web 3D APIs.

So the game that runs without problems on your development machine, can have all sorts of issues on the client browser that you cannot work around like on native, because they are caused by how the browser is blacklisting the user's hardware or drivers.

Re:Developing Games on Linux: An Interview with Little Red D... by bschwindHN on Friday June 25, 2021 @09:09AM (#27630296)
Can you elaborate on this? Is it different from "detecting if WebGL/WebGPU is supported"? Because I'm pretty sure you can detect that, according to all the answers on this thread:

https://stackoverflow.com/questions/11871077/proper-way-to-d...

Re:Developing Games on Linux: An Interview with Little Red D... by pjmlp on Friday June 25, 2021 @10:20AM (#27631079)
It is supported doesn't mean that you get what you are expecting, if anything is black listed you will get a "supported" version with software rendering instead.

Naturally random joe user has no idea what is going on, and will dimiss your game as crap because it is running at e.g. 3 FPS.

Then even if everything is supported in hardware, as OpenGL ES 3.0 subset (defined in 2011), no matter how good the GPU is, there is only so much you can do.

Re:Developing Games on Linux: An Interview with Little Red D... by bschwindHN on Friday June 25, 2021 @09:11PM (#27638103)
I see what you're saying, is this to prevent browser fingerprinting?

Maybe the browser versions won't be too great, but I'm more optimistic about the WebGPU libraries which allow you to target the desktop.

Re:Developing Games on Linux: An Interview with Little Red D... by seaorg on Friday June 25, 2021 @01:06PM (#27633485)
I really doubt that the mature implementations of wgpu will not allow an app to check for hardware acceleration.
Re:Developing Games on Linux: An Interview with Little Red D... by pjmlp on Friday June 25, 2021 @01:22PM (#27633729)
Doubt as much as you want, it is a security issue for browser vendors to expose that information, that is why they black list to start with.
Re:Developing Games on Linux: An Interview with Little Red D... by seaorg on Friday June 25, 2021 @01:43PM (#27633996)
Browser vendors want people to be able to experience rich 3D accelerated content in their browsers and they will be aware of these issues like the one you mention. The idea that it won’t be addressed is completely schizophrenic… how could it be a security risk for the client to do it’s own assessment of whether or not the available hardware is suitable for 3D content and then set a flag accordingly?
Re:Developing Games on Linux: An Interview with Little Red D... by pjmlp on Friday June 25, 2021 @02:03PM (#27634243)
10 years of WebGL experience on the field prove otherwise.

There are browser flags to disable black listing, which is something that regular Joe/Jane has no idea whatsoever that they exist.

Besides, you can head off to webgpu.io and follow up on meeting minutes.

Even better, attend the upcoming WebGL/WebGPU meeting from Khronos (registration currently open) and pose that question if you prefer to hear the same from the browser vendors themselves.

Re:Developing Games on Linux: An Interview with Little Red D... by Jasper_ on Friday June 25, 2021 @03:04PM (#27634958)
I don't know why you keep saying "it's not possible" when I literally wrote code that does it: https://github.com/magcius/noclip.website/blob/cc98112d7b105...
Re:Developing Games on Linux: An Interview with Little Red D... by pjmlp on Friday June 25, 2021 @04:51PM (#27636103)
That code is not fullproof for blacklisted drivers across ANY browser.
Re:Developing Games on Linux: An Interview with Little Red D... by seaorg on Friday June 25, 2021 @07:41PM (#27637580)
Ha ha you’re stupid!
Re:Developing Games on Linux: An Interview with Little Red D... by pjmlp on Saturday June 26, 2021 @02:05AM (#27639557)
If you feel that way about me, great.

Have a nice joyful day.

Re:Developing Games on Linux: An Interview with Little Red D... by seaorg on Friday June 25, 2021 @05:21PM (#27636423)
it looks like this code detects whether or not the client is making webgl2 available, not the presence or amount of hardware acceleration that the client is giving you access to via webgl2.
Re:Developing Games on Linux: An Interview with Little Red D... by seaorg on Friday June 25, 2021 @02:47PM (#27634783)
But in this case webgpu is basically a waste of time… why would they bother creating it if it won’t end up being of any use? Couldn’t you assess performance with a dummy load anyway?