Menu

uPlot is fast, but probably not fast enaugh

Reddit r/Frontend·u/Loskatto·6 months ago
#UFJ9NJOY
#const#current#plot#uplot#useref
Reading 0:00
15s threshold

I’m building a realtime oscilloscope-like plotter using React + Tauri + uPlot, and I’m running into two annoying issues:

noticeable jitter on the X axis

square waves are not rendered as actual square waves, but with diagonal/interpolated transitions

https://preview.redd.it/indda9ifun0h1.png?width=888&format=png&auto=webp&s=99985e5756d8b8dc06183147b2d42c26205bdb23

Right now I’m receiving data through Tauri events ( signal-stream ) and updating uPlot inside requestAnimationFrame .

The main problem is that the chart visually “shakes” horizontally while the time window scrolls.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.