Skip to content

clutter: Align all screen transformations to 1/256th of a stage unit.

Daniel van Vugt requested to merge vanvugt/mutter:align-transformations into master

So as to eliminate floating point precision errors that creep in during matrix operations.

1/256th is chosen as a reasonable maximum resolution to cover any realistic fractional scaling factor. Floats can represent such a fraction losslessly because it is a small power of 2.

Closes #1403 (closed) (confirmed) and hopefully #1201 (closed). But see also 30809665 and !784 (closed) where the same kind of problem was encountered in the past.

Edited by Daniel van Vugt

Merge request reports