how to find how many data points can be shown on qcustom plot based on ram ?
-
I want to know how many data points can be shown smoothly on screen using qcustomplot library.
i have 4 GB ram . i am getting 4 data in 1 second.
when my graph shows more than 4 hour data it start to block main GUI thread i guess.
because when i move 4 hour data graph it starts to hang my qt application.
anybody know how to deal with this thing when i have to show 6hr data at a time ?
-
I want to know how many data points can be shown smoothly on screen using qcustomplot library.
i have 4 GB ram . i am getting 4 data in 1 second.
when my graph shows more than 4 hour data it start to block main GUI thread i guess.
because when i move 4 hour data graph it starts to hang my qt application.
anybody know how to deal with this thing when i have to show 6hr data at a time ?
@Qt-embedded-developer
That would depend on many factors, not sure somebody else is going to come up with answer for you.I thought we had discussed this before, maybe somebody else. Maybe you don't need 4 points per second for 6 hours? You can also "prune" your data, e.g. average out some points, or keep detailed points on external storage and still allow user to zoom in. No point showing many more points than user can see.
Having said that, 4 per second for 6 hours is only 86k points. Not likely to challenge 4GB ram one would think.
because when i move 4 hour data graph it starts to hang my qt application.
"Move"? If you mean some sort of dragging around and 86k points have to replot that could be laggy.