I did my search and I'm hoping this is a question that's not already answered somewhere else.
I'm making some real-time drawings based on touch events, using skiasharp on xamarin.forms/PCL. My graphics concept requires the view to be completely redrawn each time. Since these redrawings start with a Clear(), they cause some flickers at the view. So I decided to use a cache, on which to draw first, away from user's sight, and then copy resulting image to the view.
In order to achieve this, one method that seemed best to me, is to create a cache surface having same dimensions with the view's surface, make drawings on cache surface, and then at the view use SKCanvas.DrawSurface method to copy cache surface content to view's surface, showing it to user by a single command, making sure there will be no flickers.
Do you think this is the most reasonable approach, or do you recommend another method for cached drawing?