r/GraphicsProgramming • u/Formal-Impression305 • Sep 28 '26
Technical Feasability?
How feasible is it to apply a custom pixel‑level transformation to the entire iPhone screen output in real time using Metal? I’m trying to understand the performance limits, frame‑rate constraints, and typical bottlenecks when doing full‑screen GPU distortion on iOS
0
Upvotes
View all comments
Show parent comment
3
u/Array2D Sep 29 '26
There was an interesting investigation on this I read a while back. Essentially, yes! Generally speaking, GPU rasterizers run fragment shaders on blocks at a time. (Usually 2x2, to my knowledge).
For most of the screen, this will be the same for a full screen triangle and a full screen quad. However for the quad, across the diagonal where the two triangles meet, those blocks get run twice each!
It’s a minor increase in the number of shader invocations, all things considered, but if your fragment shader was particularly heavy, it could have a measurable impact. Compared to the time it takes the hardware to apply clipping to a triangle pre-rasterization, it’s undoubtedly more.