Hi,
While trying to build a little fun Iron Man simulator. I followed the example on the playcanvas website for using the canvas as a texture for a HUD but have found that it seems to increasingly slow down the system as time goes on.
In canvas2d, you need to use ctx.beginPath() before each own shapes, otherwise it accumulates the commands and when you call stroke or fill it will iterate through accumulated list of shapes and perform drawing. Using beginPath it will flush that list.
That is probably why it gets slower and slower each frame.
That seem to improve the situation a bit but it still felt a bit sluggish so I have set the hud to refresh less often which seems to have solved the issue for the time being.