3 ms·
> Shipping architecture-optimized shader replacements is basically required nowadays. That's strange to me. Why care at all about what individual games do? A G
by grishka 3y ago
> Shipping architecture-optimized shader replacements is basically required nowadays.
That's strange to me. Why care at all about what individual games do? A GPU driver includes a shader compiler anyway, why can't it do a good enough job at optimizing the shader for the particular GPU architecture? It's kinda the same reason almost no one writes assembly any more, because modern compilers are so good at generating optimized machine code.
- baq 3y agoBecause a studio has a deal with nvidia but then AMD or Intel also want the triple-A game to perform well on their hardware, for example.
- grishka 3y agoBut is it really possible to write a shader that would only perform well on NVidia GPUs? Isn't it like CPUs, where if your code isn't optimal to begin with, it won't run fast, no matter the architecture and compiler optimizations?
- baq 3y agoGPUs are much more architecturally diverse than CPUs so yes, that’s exactly the case that different codes are required for optimal performance on different hardware.