Possibly looking at how your layers are constructed
And using them properly. A layer does not have to
Be the entire canvas. Generally all your background
Stuff that stays the same goes into the lowest and largest
Z order or layer. Then you build on top of that. For instance
You create a smaller layer above the video player
And clear the area for buffering with a rectangle
Only Large enough to display the text. You set your
Text and then only reset the layer for the text. You do not
Have to clear or setlayer the other layers. If you really want to clear everything
Over the videoThen use a rectangle the size of the screen for the topmost layer
Background. The canvas knows what
Is underneath. When you are done with the buffering
Message then just set that layer below everything else
You can move layers to whatever z order you want including
-1 which is behind everything. You can create layers in advance
That only occupy the minimal area that is needed
To accomplish the task. Set their zorders to -1
And then when you need to use it set the zorders
Above all others and update it The canvas knows
What needs to be repaired when setting or swapping layers
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )