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: Problem with big data set with opengl support
Forum Updated to NodeBB v4.3 + New Features

QTCharts: Problem with big data set with opengl support

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 388 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    Thomas Enzinger
    wrote on last edited by
    #1

    Hello,

    I try to plot an data set with 129600000 points with QLineSeries. I enabled opengl support.
    With smaller data sets every thinks works well.

    If I try to plot the data set, the application starts (gray window is painted) and an nvidia error is reported by an error dialog.
    "A TDR has been detected. The app ..... must closed. Error Code: 7 ...."
    I think it is not enough memory available on the nvidia quadro m1200 of my computer. An float64 representation needs roughly 2 GB for the data set.

    To solve the problem, I have four questions

    • It could be an timeout problem with opengl <-> nvidia driver. How can I expand any timeout?
    • For plotting I do not need an 64 bit representation. Which rep. use Qt on the grahpics card and how can I reduce that to 8/16 bit?
    • Is there a method to calculate the available memory on the graphics card, which I can use to cut down the data set?
    • Is it possible to plot the dataset in partial mode? Do x loops until all points are plotted (transfer partial set of points, plot point to image, delete and next loop)?

    Thanks for all comments.

    Pl45m4P jsulmJ 2 Replies Last reply
    0
    • T Thomas Enzinger

      Hello,

      I try to plot an data set with 129600000 points with QLineSeries. I enabled opengl support.
      With smaller data sets every thinks works well.

      If I try to plot the data set, the application starts (gray window is painted) and an nvidia error is reported by an error dialog.
      "A TDR has been detected. The app ..... must closed. Error Code: 7 ...."
      I think it is not enough memory available on the nvidia quadro m1200 of my computer. An float64 representation needs roughly 2 GB for the data set.

      To solve the problem, I have four questions

      • It could be an timeout problem with opengl <-> nvidia driver. How can I expand any timeout?
      • For plotting I do not need an 64 bit representation. Which rep. use Qt on the grahpics card and how can I reduce that to 8/16 bit?
      • Is there a method to calculate the available memory on the graphics card, which I can use to cut down the data set?
      • Is it possible to plot the dataset in partial mode? Do x loops until all points are plotted (transfer partial set of points, plot point to image, delete and next loop)?

      Thanks for all comments.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @thomas-enzinger

      Hi,

      is it a static or live plot? (Do your 129M points change on runtime?)

      @thomas-enzinger said in QTCharts: Problem with big data set with opengl support:

      For plotting I do not need an 64 bit representation. Which rep. use Qt on the grahpics card and how can I reduce that to 8/16 bit?

      QLineSeries takes QPoints or qreals which are double values per default. I dont know if the plot accepts shorter data types.

      BTW, I would recommend using external libs / widgets like QCustomPlot or QWT for plotting.

      This might be helpul as well (http://voidknot.blogspot.com/2014/10/extending-qwtplotitem-class-to-plot.html)


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • T Thomas Enzinger

        Hello,

        I try to plot an data set with 129600000 points with QLineSeries. I enabled opengl support.
        With smaller data sets every thinks works well.

        If I try to plot the data set, the application starts (gray window is painted) and an nvidia error is reported by an error dialog.
        "A TDR has been detected. The app ..... must closed. Error Code: 7 ...."
        I think it is not enough memory available on the nvidia quadro m1200 of my computer. An float64 representation needs roughly 2 GB for the data set.

        To solve the problem, I have four questions

        • It could be an timeout problem with opengl <-> nvidia driver. How can I expand any timeout?
        • For plotting I do not need an 64 bit representation. Which rep. use Qt on the grahpics card and how can I reduce that to 8/16 bit?
        • Is there a method to calculate the available memory on the graphics card, which I can use to cut down the data set?
        • Is it possible to plot the dataset in partial mode? Do x loops until all points are plotted (transfer partial set of points, plot point to image, delete and next loop)?

        Thanks for all comments.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @thomas-enzinger There is no point in showing 126M points at the same time as no display has so many points (not even close). You should consider reducing the amount of points.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        5

        • Login

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