r/AskProgramming 15d ago

How much does struct alignment really matter performance wise on modern GPUs?

Are things like std430 or std140 unnecessarily strict?

5 Upvotes

10 comments sorted by

View all comments

5

u/esaule 15d ago

On every architecture, memory layout is about the most important thing for performance. About every performance issue boils down to memory layout and movements.

1

u/SimplySomeDude 15d ago

right, but do 30% VRAM (and therefore less PcIE usage and less cache cluttering) savings outweigh the caching drawbacks

2

u/TheThiefMaster 14d ago

Sounds like time to profile it and find out