4 ms·
another one i forgot - drawing at exact aligned pixel boundaries to avoid or minimize antialiasing this makes uPlot charts a bit rougher looking, but the perf
by leeoniya 7y ago
another one i forgot
- drawing at exact aligned pixel boundaries to avoid or minimize antialiasing
this makes uPlot charts a bit rougher looking, but the perf impact is quite large.
- 1wheel 7y agoHow much of an impact does this have? I prefer the look of things snapped to pixels; I didn't realize it also speed things up!
- leeoniya 7y agohey adam :) it's highly dependent on what's actually drawn. i regressed it by accident and didnt notice a huge difference until i randomly opened the stress test (which is also densely packed so probably a worst case for AA)[1]. it went up by a factor of 2-4. cant remember exactly. [1] https://github.com/leeoniya/uPlot/blob/master/bench/uPlot-600-series.html https://github.com/leeoniya/uPlot/blob/master/bench/uPlot-60...