mekkablue / ShowInterpolations

Glyphs.app plugin for live-previewing all interpolated instances of the current glyph.
Apache License 2.0
23 stars 5 forks source link

Interpolation are shaking #9

Closed harbortype closed 7 years ago

harbortype commented 7 years ago

The interpolations shake when I click and drag anywhere on canvas. The same thing happens when I have Show Crosshair or Show Stem Thickness turned on.

Here is a short video: https://www.dropbox.com/s/f8eii0dchsy066c/Glyphs%20Show%20Interpolations.mov?dl=0

I’m on Glyphs 2.4.1 (983).

kontur commented 7 years ago

Not sure if this is the same, but for all it's worth I had a similar looking problem with shaking interpolations between uneven numbers. I'd nudge a master 1 unit more left or right and the shaking stops.

mekkablue commented 7 years ago

That is a rounding error when you have the centering option on. I do not know if I can do much about it.

EDIT: I could do floor division, which could stop the flickering, but then the result is not precise anymore. I recommend you simply turn of centering through the context menu.

harbortype commented 7 years ago

Ah, that’s ok. I’ll just disable centering then.

kontur commented 7 years ago

Found the centering helpful, so I tried to create a workaround to prevent this jitter. Please test the PR some more still, but for me this works by checking if the new interpolation should be moved at least 1 pixel, and if not, leaves the layer unmoved.

harbortype commented 7 years ago

Thank you, @kontur. It works for me.

kontur commented 7 years ago

(Disregard my previous deleted comments, somehow the repo HEAD was at the wrong commit - my fix seems to work to prevent the jitter, as far as I can tell after two days usage.)