Jump to content
Software FX Community

Realtime drawing problems

User (Legacy)

Recommended Posts

Enclosed is a screenshot of problem with realtime drawing API.  The chart 

does not appear to update correctly when adding more than 1 point to chart.

I use the code sequence below. If I do not call chart.Refresh, the drawing

will not be updated correctly as shown by the missing gaps in the

screenshot. This forces excessive CPU usage to perform the whole chart

refresh in the real time API.

co.chart.RealTime.BeginAddData(gCount, RealTimeAction.Append);

for (int j = 0; j < gSeries; j++)


GraphStore gs = LocateGraphObject(ref co, j);

if (gs == null) continue;

for (int i = 0; i < gCount; i++)


co.chart.Data[j, i] = gs.Data[gStart + i];



co.chart.RealTime.EndAddData(false, false);

// This should not be necessarty, but is required to prevent drawing


if (gCount > 1) co.chart.Refresh();

--- Tom Scharf ----

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...