Hacker News new | past | comments | ask | show | jobs | submit login

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.




How 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!


hey 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-60...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: