#64 Symbol.Draw Performance Fix

open
nobody
None
5
2012-09-19
2007-12-21
No

I've got around 10,000 LineItems on a graph with LineItem.Symbol.IsVisible = false, yet 2/3 of the rendering time is spent in Symbol.Draw.

A simple fix is to check the _isVisible flag in Draw() and immediately return if it is false, i.e:

public void Draw( Graphics g, GraphPane pane, LineItem curve, float scaleFactor,
bool isSelected )
{

                if (!_isVisible) {
                    return;
                }

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks