Post #4428169
2026-08-07 09:06 UTC
Why is shader optimization so addictive? I have other things to do...
But it's 2AM, I'm thoroughly caffeinated, and staring at the Radeon GPU profiler reordering SSBO memory transactions for improved coalescing.
And successfully shaved about 1.7 ms off the first shader in the PAM4 edge detector (4.71 -> 2.98 ms, a 58% speedup). The overall filter went from 11.22 to 8.8 ms, a 27.5% speedup.
There's definitely still more room to tune, too.
Replies (1)
-
@0h00000000@ioc.exchange 2026-08-07 12:05
@azonenberg@ioc.exchange You should write a book, "Using GPUs to massively speed up your C/C++ code" - targeted for C/C++ programmers. I'd pre-order it for sure. Chapter 1 - GPUs for idiots and/or programmers too busy and/or lazy - minimal code to speed up your hello world app by calculating PI to 100 digits. Before/after comparison. I wonder if you could use a GPU to speed up a database, like for searching or joining tables, creating/comparing search hashes and the like...