News for hackers. Stuff that matters.
Re:The Apple GPU and the impossible bug by bob1029 on Friday May 13, 2022 @01:12PM (#31370204)
I really appreciate the writing and work that was done here.

It is amazing to me how complicated these systems have become. I am looking over the source for the single triangle demo. Most of this is just about getting information from point A to point B in memory. Over 500 lines worth of GPU protocol overhead... Granted, this is a one-time cost once you get it working, but it's still a lot to think about and manage over time.

I've written software rasterizers that fit neatly within 200 lines and provide very flexible pixel shading techniques. Certainly not capable of running a cyberpunk 2077 scene, but interactive framerates otherwise. In the good case, I can go from a dead stop to final frame buffer in <5 milliseconds. Can you even get the GPU to wake up in that amount of time?

Re:The Apple GPU and the impossible bug by mef on Friday May 13, 2022 @01:50PM (#31370556)
with great optimization comes great complexity
Re:The Apple GPU and the impossible bug by ip26 on Saturday May 14, 2022 @12:18PM (#31379458)
Is it just optimization? I would call it capability. An automobile is more complicated to operate than a skateboard.
Re:The Apple GPU and the impossible bug by jfim on Saturday May 14, 2022 @03:21AM (#31375789)
> In the good case, I can go from a dead stop to final frame buffer in <5 milliseconds. Can you even get the GPU to wake up in that amount of time?

Considering the fact that there are 240 Hz monitors nowadays, which means that an entire frame must be rendered in about 4ms, it has to be possible.

Re:The Apple GPU and the impossible bug by plekter on Sunday May 15, 2022 @04:20PM (#31390704)
Modern gpus + drover stack usually had more than one frame in flight. You have to output a frame every 4ms, but you do not need the latency from the start of the application rendering code to the frame being on screen to be 4ms - pipelining is allowed. But keeping that pipelining down to a minimum is also important, as it contributes to input lag which gamers care about.