I have spent some time converting simplegraph from its bitmap-based rendering (which means
lines and text just get bigger as you zoom in) to vector based drawing. I noticed in testing the
screen then flickered like crazy when dragging
mouse to say move nodes, add links. Looking at
the drawing code, I see this is because mousemove
just invalidates and you dont see flicker with strange painting code it used to have. The "proper" way to implement is with XOR drawing, but oh joy that is a lot to reverse engineer into simplegraph.
Great data structures but useless rendering. I am not sure I can face this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have spent some time converting simplegraph from its bitmap-based rendering (which means
lines and text just get bigger as you zoom in) to vector based drawing. I noticed in testing the
screen then flickered like crazy when dragging
mouse to say move nodes, add links. Looking at
the drawing code, I see this is because mousemove
just invalidates and you dont see flicker with strange painting code it used to have. The "proper" way to implement is with XOR drawing, but oh joy that is a lot to reverse engineer into simplegraph.
Great data structures but useless rendering. I am not sure I can face this.
Phil,
If you need help somewhere, you can mail me your code and I can see what I can do. Let's face it together :)