Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › Display FPS

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9174

    Mathias

    Hi,

    How do is display the fps of my game.
    displayFpsEnabled property in GameWindow does not seem to work anymore.

     

    – Mathias

    #12939

    Martin

    well, in my case it seems to display it too far to the bottom. in the last y-row of the window i can see some pixels that have the color of displayFpsColor and they change once in a second or so.

    #12941

    Günther
    Felgo Team

    Hi!

    Like Martin already found out the FPS display is positioned incorrectly at the bottom of the window.
    Thank you for reporting this issue, we will have a fix ready for the next update.

     

    As a temporary solution, you can use this line to fix the issue:

    GameWindow {
      id: gameWindow
    
      // ...
    
      displayFpsColor: "red"
      displayFpsEnabled: true
    
      Component.onCompleted: gameWindow.gameWindow.height = Qt.binding(function() { return gameWindow.contentItem.height })
    
      // ...
    }

     

     

    Best,
    Günther

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded