r/AskProgramming • u/SimplySomeDude • Aug 26 '26
How much does struct alignment really matter performance wise on modern GPUs?
Are things like std430 or std140 unnecessarily strict?
6
Upvotes
r/AskProgramming • u/SimplySomeDude • Aug 26 '26
Are things like std430 or std140 unnecessarily strict?
View all comments
1
u/BobbyThrowaway6969 Aug 27 '26
Not as much, caches are so big now
It's more for communicating the data between cpu and gpu
That said I absolutely would care because savings are savings, so keep looking for ways to make your gpu code more efficient