QGraphicsVideoItem continuous repaint?
-
Hi,
I would be surprised as well however it could be related to the platform backend itself that might be doing something like pushing the same frame over and over while in pause.
I do not say it is that, just thinking out loud about what might be happening.
-
@davecotter Does the application has timer instance running which is calling update ?
-
nope, no timers that call update() (but i do have timers trying (and failing!) to do other things). you can see the same problem with "Video Graphics Item Example"
just open any HD video (1920x1080), start playing it, pause it, and break into the debugger.
you'll see it's wicked bizy rendering some pixels that it DEFINITELY doesn't need to
-
i also note that timers have a really hard time getting any cpu time while the video is playing.
video plays all smooth, that's nice, but the rest of the app slows to a crawl.
-
bug reported here, please upvote!
-
this is a horrible, show stopping problem, because timers don't fire when a video is playing.
even a 648x480 video, tiny by today's standards, on a modern, powerful computer, the app's timers come to a screeching halt, when playing OR when paused playing.
please upvote this bug, thanks.
-
You should add a minimal compilable example to your report.
Worth noting, the Qt Multimedia module is getting quite a big overhaul for Qt 6.2, you should check it out.
-
@davecotter said in QGraphicsVideoItem continuous repaint?:
Video Graphics Item Example
the minimal example is "Video Graphics Item Example" which is included with Qt. just add a timer and watch it not fire.
-
Then at least tell that on the report.
That will help the developer that will take the report to reproduce your situation more easily.
-
i had said to use that example, but i have now added the tidbit about "add a timer"