-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undo functionality takes time #12
Comments
When you undo the latest step, this is what is happening:
One suggestion to improve the performances could be to save more than one cache image, let say once every 10 draws. Doing this, when you undo, you will redraw only up to 9 items ... |
saving extra cache image is good way to solve but if 1 of the ten draw is too big then it will take much time. Can we update cache image every time, and when undo is pressed it will just replace last image. |
Done with Undo time gap. I have one doubt regarding this. Hope this is not the wrong place to ask. I apologize if it is. I am developing one application in which i will let user to draw a picture, after user completes drawing i will display the video how user did that. So gradually it will redraw complete drawing. I am done with this part but i am stuck with fast forward functionality. In which user will directly see final drawing. So how can i implement that. I have developed code for that and it works fine with simulator but i am facing problem in device as application crashes when i click on that button. I think reason is in device we can not render too much data with one click at the same time. Can you guide with this? -Thanx. |
Your code works perfectly for me. But when i draw so much data at that time undo function take exponential time depends on the content draw on the drawing pad. How can i reduce that time while undoing? I don't know how much time undo function take when it is called because it is dependent on total content.
The text was updated successfully, but these errors were encountered: