2/20/2023 0 Comments What is shader cacheIf the data is ready it uses it, if not it needs to stop execution to wait for it. When it needs to use the data it stops to check if it is available. asks for the data) and continues to execute instructions following it in the shader program. When it comes across a memory instruction the GPU issues it (i.e. This latency has the potential to stall the GPU while waiting for the data. the time between issuing the instruction and getting the result back is long), due to having to reach out to caches and maybe RAM to fetch data. Typically, instructions that fetch data from memory have a lot of latency (i.e. I had a good question through Twitter DMs about what occupancy is and why is it important for shader performance, I am expanding my answer into a quick blog post.įirst some context, GPUs, while running a shader program, batch together 64 or 32 pixels or vertices (called wavefronts on AMD or warps on NVidia) and execute a single instruction on all of them in one go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |