Andrew Zonenberg on Nostr: Why is shader optimization so addictive? I have other things to do... But it's 2AM, ...
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.
Published at
2026-08-07 09:06:43 UTCEvent JSON
{
"id": "bf8c7abd150801888b991bf154a1a898979eebccca09215b0926dc93c450516c",
"pubkey": "c35a8fae05a838b863707803bb1fdfcfcbb39adcf01ee1a9fc52ef44998ce4c0",
"created_at": 1786093603,
"kind": 1,
"tags": [
[
"imeta",
"url https://files.ioc.exchange/iocexchange/media_attachments/files/117/053/422/056/577/031/original/99355ae4c697910a.png",
"m image/png",
"dim 3840x2127",
"blurhash U24n}Xn$tSRo~qs.NIWG?bxaRkog%Lf*s.jZ"
],
[
"proxy",
"https://ioc.exchange/users/azonenberg/statuses/117053430407882240",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Why is shader optimization so addictive? I have other things to do...\n\nBut it's 2AM, I'm thoroughly caffeinated, and staring at the Radeon GPU profiler reordering SSBO memory transactions for improved coalescing.\n\nAnd successfully shaved about 1.7 ms off the first shader in the PAM4 edge detector (4.71 -\u003e 2.98 ms, a 58% speedup). The overall filter went from 11.22 to 8.8 ms, a 27.5% speedup.\n\nThere's definitely still more room to tune, too.\n\nhttps://files.ioc.exchange/iocexchange/media_attachments/files/117/053/422/056/577/031/original/99355ae4c697910a.png",
"sig": "20bf5bf2327aa6e66e9f6ca215e43341564180cfbde9c189dc1c757f40dfb5488424901a6c174d6f08751a09de9f44998cbbe369d532858b897616cc8a986d4e"
}