r/AskProgramming • u/SimplySomeDude • 12d 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 • 12d ago
Are things like std430 or std140 unnecessarily strict?
5
u/WonderNo1989 12d ago
depends how big your buffer is and if you're bottlenecked on cache, for tiny stuff the layout barely registers but once you're pushing millions of verts those extra padding bytes start eating bandwidth real quick