I put a console.debug statement in RenderContext.resize, and noticed that it is being called every time the mouse moves. This is due to a call to hitTestCtx.resize within Surface.hitTest(). I don't think it is having a substantial CPU impact, but it might if the resize method gets more complicated to deal with high DPI displays.
I put a console.debug statement in RenderContext.resize, and noticed that it is being called every time the mouse moves. This is due to a call to hitTestCtx.resize within Surface.hitTest(). I don't think it is having a substantial CPU impact, but it might if the resize method gets more complicated to deal with high DPI displays.