Stalling a GPU
- Remember that a shader is more like a bunch of jobs than serial GPU code, even though the syntax looks like serial code
- Avoid introducing extra dependencies between those jobs, and understand the dependencies you have as they can hint to additional optimizations
- The cost of certain operations can be completely masked by this parallelism.
- The cost of all texture samples are not the same
https://medium.com/@jasonbooth_86226/stalling-a-gpu-7faac66b11b9
#shader #optimization
Post #1607
57