Seprate Canvas For Background Image

Hi , Right now in my game I have one canvas where every UI elements present . So if any small UI changes or any continuous animation cause whole canvas to redraw that has high CPU usage . So I want to exclude my background image from that canvas to new canvas . So BG will not draw again and again.

This might be possible using -Ddom

The renderer may need a little bit of improvement but in theory you should be able to bitmapData.draw any objects you want combined into one canvas and other elements (such as UI) can actually be on the DOM if you like

Wouldn’t you need to delete your entire canvas anyway or your UI would overlap with itself?

Does it make a big difference to clear vs drawing a background over everything?