You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a very "matt" problem, but here's the situation.
In my animation code, I want to "scale" a rectangle so that it animates to its final width. An example would be if the width was growing from 50px to 100px. I would set the width to 100px immediately, but then interpolate the scale form 50% to 100% over some time so that the window appears to grow.
However, this always leaves an artifact because the following happens:
Width is set to 100px
Transformation is set to scale the width at 50%
Re-render happens with the width of the renderable still at 50px but with a transformation at 50%
The issue here is that I have no way to confirm when the surface processed my request to change its size, so I end up rerendering too early.
So my questiojn is: can mir ensure that the setting of the size and transform happen in lock step?
The text was updated successfully, but these errors were encountered:
Just to note that there's a wider synchronisation problem as we have to track what the client requests, what window management dictates, and what the client does. (None of which is guaranteed to be consistent)
Just to note that there's a wider synchronisation problem as we have to track what the client requests, what window management dictates, and what the client does. (None of which is guaranteed to be consistent)
Yes I'm just going down the rabbit hole of this now. It's a bit painful, given that every client can ignore your requests. I often find that the best I can do is a "best effort" based off of what the client informs me about itself
This is a very "matt" problem, but here's the situation.
In my animation code, I want to "scale" a rectangle so that it animates to its final width. An example would be if the width was growing from 50px to 100px. I would set the width to 100px immediately, but then interpolate the scale form 50% to 100% over some time so that the window appears to grow.
However, this always leaves an artifact because the following happens:
The issue here is that I have no way to confirm when the surface processed my request to change its size, so I end up rerendering too early.
So my questiojn is: can mir ensure that the setting of the size and transform happen in lock step?
The text was updated successfully, but these errors were encountered: