Results 1 to 10 of 10

Thread: Painting of lots of computationally heavy pixels

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Painting of lots of computationally heavy pixels

    If you use your own custom widget for the painting.. you won't need the displayimage, necessarily. Just drawPixmap the heatimage on the widgets painter. and then directly draw your circles. Does that work?

    LUT: Well it adds up. And it depends on how often you need to refresh your heatimage. But it seems pretty stationary in your case. So forget about it. I had 2560x1600 realtime changing pixels where it made a BIG difference..

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Painting of lots of computationally heavy pixels

    Yes it does work.

    Well, maybe after everything else is done I will tinker with the LUT and see how much it does. But I doubt it will be noticable. Compared to the 300k times 1 ms for each pixel of the heat map, reducing 300k linear interpolations to 10k look ups is most likely less than 0.1 percent of the total runtime.

    Thanks for the help mate! We put this thing together in less than two hours.

  3. #3
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Painting of lots of computationally heavy pixels

    Well it went that fast because you didn't need any help implementing. Good work!

    BTW: If you want to do me a favour, use the forums thanks button, once :->

    Bye!

    Johannes

  4. The following user says thank you to JohannesMunk for this useful post:

    Cruz (11th April 2010)

Similar Threads

  1. Pixels
    By Dante in forum Qt Programming
    Replies: 1
    Last Post: 21st April 2009, 20:50
  2. Replies: 4
    Last Post: 11th December 2008, 17:35
  3. Screen refresh during heavy computation
    By martinb0820 in forum Qt Programming
    Replies: 5
    Last Post: 17th November 2008, 22:20
  4. Qt 4.3.0 lots of Bugs!
    By VireX in forum Qt Programming
    Replies: 69
    Last Post: 20th June 2007, 22:05
  5. Application very heavy for lots object
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 29th April 2006, 17: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.