3 ms·
Graphics drivers do this all the time. Shipping architecture-optimized shader replacements is basically required nowadays.
by baq 3y ago
Graphics drivers do this all the time. Shipping architecture-optimized shader replacements is basically required nowadays.
- filterfiber 3y agoTo my understanding the graphics drivers modify the rendering pipeline after the draw calls are made, they don't actually hijack code within the game and modify it's logic. Developers of games add api calls to their game engines for things like antilag/nvidia reflex, that if enabled will notify the driver and allow them to do their thing before returning back to an unmodified game. You do not modify the internal game state - that's a straight red line. There's lots of places you _can_ generally hijack, such as the final rendering calls which is how most overlays work. I don't think whitelisting drivers is common either for the same reason cs2 doesn't allow userland applications to be whitelisted - you can potentially hijack that application instead and then your cheats will be whitelisted.
- kabdib 3y agoModifying the game code is a red line, too. I don't think that VAC allows this at all, and for good reason.
- 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.
- mardifoufs 3y agoThis was hooking into engine.dll, as in the main engine code. Not just rendering
- lofaszvanitt 3y agoThat's why a driver is now above 500 MB?