Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10336

Events issues with QGraphicsView on MacOS X at high frame rates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 4.6.3
    • 4.6.0, 4.6.1, 4.6.2, 4.7.0
    • None
    • MacOS 10.5.8
      MacBook Pro - 2.53 Ghz Intel Core 2 Duo 4GB Ram
      NVIDIA GeForce 9400M / 9600M GT
    • macOS

    Description

      I´m a stellarium.org developer and I´m experiencing some performance issues with QGraphicsView.on MacOS platforms. We have not observed such a problem on Linux (Ubuntu 8.10)

      I've been using qt 4.7 Tech Preview for some weeks on MacOS 10.5.8. I compiled the sources with default options so Qt now uses Cocoa instead of Carbon.

      We use QGraphicsView with a QGLWidget viewport and the option NoViewportUpdate. We manage the updates by ourselves since we have an adaptive frame rate system (battery saving optimization)

      The painting of the scene seems to be ok but apparently there are problems with events treatment at high frame rates (Events are ignored? ) I think I´ve been able to reproduce the problem in one of the Qt examples (elasticnodes) At low frame rates (<250) both the painting and the events treatment work fine but when increasing the number of frames the gui becomes less and less responsive to the events (>250)

      Please find attached the modified code of the example. I've just changed 4 lines in the constructor of Graphwidget. You can try to run the example with different frame rate values to see how the responsiveness decreases.

      Thanks in advance,

      Diego.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            dmarcos Diego Marcos Segura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes