Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Graphics tearing
Forum Updated to NodeBB v4.3 + New Features

Graphics tearing

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.8k 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.
  • D Offline
    D Offline
    dtucker
    wrote on last edited by
    #1

    Hi all,
    I working on a simple app for an embedded platform currently running Qt4.6, though we plan to move to 4.7 soon. I'm trying to get some simple animations running smoothly.

    My test app is built using QPropertyAnimations to move 8 100x200 QPixmap images around the screen. The app seems to be working fine. The frame rate looks good, but the animations are showing a very noticeable tearing. My guess is that blit operations are not properly timed with the vsync.

    I've looked through the docs, but I can't see any method for dealing with vsync. Is there anything I can do to eliminate or even just minimize the tearing? Is the vsync something that needs to be handled at a lower level, like the directfb?

    I'm running my app with -qws -display directfb.

    dave

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qtd1d1
      wrote on last edited by
      #2

      Hi,

      you are not the only one with this problem..
      If you are using OpenGL (I would recommend to use Opengl due to hardware accerlation) :
      According to the documentation there is a possibilty to set the swapInterval of your QGLWidget.

      @
      QGLFormat fmt = QGLFormat::defaultFormat();
      fmt.setSwapInterval(1);
      @

      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