Improving the drawing performances
Registered by
arno_b
Thanks to several tests, it seems that shapes that are not in the scene view are drawn.
In this case, improving the drawing performances is simple: each drawing method must have a parameter 'scene' and must be drawn only if they are contained into this scene. The scene represents the current visible rectangle and can be easily got from the scollpane:
scene = scrollpane.
scene.height /= zoom;
scene.width /= zoom;
scene.x /= zoom;
scene.y /= zoom;
A check in the drawing operations can be:
if(position.
g.drawString
Whiteboard
(?)