Is there any reason to set values as powers of 2?

For instance, when setting render samples, noise threshold, or domain resolution I set it at 128, 256, etc. I've just done it this way ever since I learned Blender, but does this acutally do anything?

10 points · 2 comments · view on lemmy.world

2 Comments

ignotum@lemmy.world · 6 pts · 2y

There are many optimizations that can be done when working with numbers that are a power of two
that being said, i have no idea if any such optimizations are done or even applicable here 🤷‍♂️

javasux@lemmy.world · 3 pts · 2y

You should always experiment to see if it does, it can have large impacts on things like cache coherency but it always depends hugely on your particular scene