Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCanvas remains dirty during animations #6418
Comments
|
The way we render into the canvas didn't change in that PR (we keep sending pixels and transforming it into an image display item. At first I thought it was due a problem in Basically having the canvas in its own paint layer makes it to remain dirty under certain conditions... But I don't really know why. It happens just in a few cases (I think it's just when it's A canvas layer with It will also animate correctly without changing the default I guess @pcwalton or @glennw could give a bit of insight on this. |
|
Looks like this was fixed, or at least doesn't happen to me. Anyone else still experiencing this bug? |
The canvas doesn't get cleared, and the frames continue to draw on top of each other during animations, like this and this. These use clearRect to clear the canvas, but that seems to work correctly, at least I don't have problems with the example code. Dirtiness for the canvas was introduced in #5949, but unfortunately I can't bisect this issue due to half of the commits are affected with the X11 colorspace bug which was fixed some weeks ago. The problem might be in one of the dependencies too, maybe in azure.