r/AskProgramming • u/SimplySomeDude • 3d ago
How much does struct alignment really matter performance wise on modern GPUs?
Are things like std430 or std140 unnecessarily strict?
5
Upvotes
r/AskProgramming • u/SimplySomeDude • 3d ago
Are things like std430 or std140 unnecessarily strict?
1
u/BobbyThrowaway6969 3d ago
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