Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why graph draw FPS changing when resolution changed?
Qt 6.11 is out! See what's new in the release blog

Why graph draw FPS changing when resolution changed?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qwtopenglwindow sizewindowgraph
6 Posts 3 Posters 232 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.
  • Joe von HabsburgJ Offline
    Joe von HabsburgJ Offline
    Joe von Habsburg
    wrote last edited by
    #1

    I draw graph and I use QWT Lib. Also I use OpenGL canvas for QWT plot.

    For example :
    When I use 1920x1080 window size, FPS is 100,
    and when I use 4K window size, FPS is 15.
    (FPS values just for example, is slowing)

    Why that happend ?

    JonBJ 1 Reply Last reply
    0
    • Joe von HabsburgJ Joe von Habsburg

      I draw graph and I use QWT Lib. Also I use OpenGL canvas for QWT plot.

      For example :
      When I use 1920x1080 window size, FPS is 100,
      and when I use 4K window size, FPS is 15.
      (FPS values just for example, is slowing)

      Why that happend ?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote last edited by JonB
      #2

      @Joe-von-Habsburg
      I know nothing about OpenGL or QWT. But since 4k resolution is many more pixels than 1920x1080 would you not expect/be unsurprised if the FPS drops? Every graphics game I play has lower FPS as you increase the resolution.... You either reduce the resolution, typically to your 1080p, or buy a better graphics card....

      Joe von HabsburgJ 1 Reply Last reply
      1
      • JonBJ JonB

        @Joe-von-Habsburg
        I know nothing about OpenGL or QWT. But since 4k resolution is many more pixels than 1920x1080 would you not expect/be unsurprised if the FPS drops? Every graphics game I play has lower FPS as you increase the resolution.... You either reduce the resolution, typically to your 1080p, or buy a better graphics card....

        Joe von HabsburgJ Offline
        Joe von HabsburgJ Offline
        Joe von Habsburg
        wrote last edited by
        #3

        @JonB said in Why graph draw FPS changing when resolution changed?:

        Every graphics game I play has lower FPS as you increase the resolution....

        I know...

        I have a question.
        Is there a way to keep the resolution at fullhd even when using a 4K display?

        S 1 Reply Last reply
        0
        • Joe von HabsburgJ Joe von Habsburg

          @JonB said in Why graph draw FPS changing when resolution changed?:

          Every graphics game I play has lower FPS as you increase the resolution....

          I know...

          I have a question.
          Is there a way to keep the resolution at fullhd even when using a 4K display?

          S Offline
          S Offline
          SimonSchroeder
          wrote last edited by
          #4

          @Joe-von-Habsburg said in Why graph draw FPS changing when resolution changed?:

          Is there a way to keep the resolution at fullhd even when using a 4K display?

          You could try to render offscreen to an image of 1920x1080 and then display that image on a 4k display.

          Joe von HabsburgJ 1 Reply Last reply
          2
          • S SimonSchroeder

            @Joe-von-Habsburg said in Why graph draw FPS changing when resolution changed?:

            Is there a way to keep the resolution at fullhd even when using a 4K display?

            You could try to render offscreen to an image of 1920x1080 and then display that image on a 4k display.

            Joe von HabsburgJ Offline
            Joe von HabsburgJ Offline
            Joe von Habsburg
            wrote last edited by
            #5

            @SimonSchroeder said in Why graph draw FPS changing when resolution changed?:

            You could try to render offscreen to an image of 1920x1080 and then display that image on a 4k display.

            I don't know how to do this.

            After reviewing the code a bit, I identified the root cause of the problem.
            My issue is related to the waterfall plot (QwtPlotSpectrogram). This waterfall plot is constantly giving me trouble.

            1 Reply Last reply
            1
            • S Offline
              S Offline
              SimonSchroeder
              wrote last edited by
              #6

              There might be more performant versions of this (in general OpenGL can render to an offscreen target), but the easiest in the context of Qt would be to use a QPixmap as a QPaintDevice instead of a QWidget. The QPixmap can then displayed in its own widget as an image.

              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