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. QtCharts DynamicSpline takes too many resources.
Forum Updated to NodeBB v4.3 + New Features

QtCharts DynamicSpline takes too many resources.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 623 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.
  • TheTugaOneT Offline
    TheTugaOneT Offline
    TheTugaOne
    wrote on last edited by
    #1

    Hello ,
    I've been working on a project regarding dynamic data visualization and i have decided to use DynamicSpline as it does exactly what i need. The problem is one dynamic spline already puts my CPU at about 15% workload (2 of them at the same time would be around 35 - 40 %) and i need a few of these running at the same time. Note that i haven't done anything fancy with my DynamicSpline implementation , just copied the code from the Qt examples found here https://doc.qt.io/qt-5.10/qtcharts-dynamicspline-example.html . Also note that the PC i'm currently working on doesn't have a graphics card and the CPU isn't rather strong either (i5 4308 2.8ghz) but i can't imagine something as trivial as a basic DynamicSpline would take so many resources to run.
    From my tests it seems like the problem comes from the scroll() method but i'm not 100% sure and i also don't know how to work around it.
    Any help is much appreciated.

    1 Reply Last reply
    0
    • TheTugaOneT Offline
      TheTugaOneT Offline
      TheTugaOne
      wrote on last edited by
      #2

      For anyone reading in the future i just gave up on DynamicSpline and i'm using now QCustomPlot which is better for my situation anyways.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wrosecrans
        wrote on last edited by
        #3

        @TheTugaOne said in QtCharts DynamicSpline takes too many resources.:

        (2 of them at the same time would be around 35 - 40 %)

        "Would be" or "is" ? Making guesses about a problem you imagine, and then trying to solve the problem is usually the wrong way to go at it. Measure Twice and Cut Once.

        1 Reply Last reply
        0

        • Login

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