Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to find how many data points can be shown on qcustom plot based on ram ?
QtWS25 Last Chance

how to find how many data points can be shown on qcustom plot based on ram ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 147 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on 26 May 2023, 14:03 last edited by
    #1

    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 ?

    J 1 Reply Last reply 26 May 2023, 17:15
    0
    • Q Qt embedded developer
      26 May 2023, 14:03

      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 ?

      J Offline
      J Offline
      JonB
      wrote on 26 May 2023, 17:15 last edited by
      #2

      @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.

      1 Reply Last reply
      2

      1/2

      26 May 2023, 14:03

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved