epezent / implot

Immediate Mode Plotting
MIT License
4.64k stars 516 forks source link

Getter does multiple passes over data? #420

Open kcajf opened 1 year ago

kcajf commented 1 year ago

When using e.g. PlotScatterG, it seems like the getter is called twice for each data point. Is this expected / documented?

epezent commented 1 year ago

Yes, that's expected. There are potentially three render passes that will iterate though then getter -- line, marker face, marker edge.

What sort of issue is this causing you? (I assume you're updating state when your getter is called?)