Results 1 to 9 of 9

Thread: How to update curves with data from files?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2013
    Posts
    72
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default How to update curves with data from files?

    We working on project related to oil industry. Here is the problem, we have to draw 100 curves in the plot, each curve's sample data is 10,000 points more or less.In our program we read data from file and update curves each time we scroll the plots. Normally, it cost 1 - 10 ms to read data from file and put it into a QPolygonF for one curve. Then it would takes about 1s to update all curves. It's too slow.
    Do you have any suggestion?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to update curves with data from files?

    Quote Originally Posted by lwz View Post
    In our program we read data from file and update curves each time we scroll the plots. Normally, it cost 1 - 10 ms to read data from file and put it into a QPolygonF for one curve. Then it would takes about 1s to update all curves. It's too slow.
    Do you have any suggestion?
    Try to use something faster as f.e mmap or better read all data into memory only once.

    100 * 10000 * 16 bytes doesn't sound like being a problem for contemporary computer systems - and for your type of application ( have written logging software for oil drilling myself ) you usually don't need 2 doubles for each sample.

    Uwe

Similar Threads

  1. Replies: 0
    Last Post: 23rd January 2014, 21:50
  2. QSqlQueryModel data update
    By psi in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2012, 03:59
  3. Replies: 1
    Last Post: 20th October 2011, 10:08
  4. Update QScrollArea after open files
    By beppuz in forum Qt Programming
    Replies: 4
    Last Post: 26th August 2011, 15:00
  5. How to update GUI promptly with data sent from threads
    By Eos Pengwern in forum Qt Programming
    Replies: 3
    Last Post: 7th October 2010, 11:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.