Menu

#28 Show Frames per Second

Unstable_(example)
accepted
nobody
None
1
2020-10-10
2020-10-08
marsch84
No

I implemented the feature request below in the attached patch file.
https://sourceforge.net/p/trigger-rally/feature-requests/15/

The FPS is displayed in the top center of the screen. The feature can be enabled via a new switch in the parameter section of the config file (enablefps="no/yes"). The default value is "no". The FPS are updated every tenth of a second.

On the way I fixed a little glitch which happens, when the first race is started after the start of the game. The number "3" of the count down is displayed in the upper right corner. The patch is little bit bigger, because I also fixed the indentation of the spaghetti code of the "renderStateGame" fuction and properly documented the glPushMatrix and glPopMatrix function calls.

1 Attachments

Discussion

  • Onsemeliot

    Onsemeliot - 2020-10-09

    Thank you Martin. The addition in r989 seems to work too. But is it possible that now the offroad penalty (in yellow in the attached screenshot) moved one line down? Or do I remember wrongly that this information used to be displayed right below the other two time statistics?

     
  • Onsemeliot

    Onsemeliot - 2020-10-09
    • status: open --> accepted
     
  • marsch84

    marsch84 - 2020-10-10

    I think you are right. I googled for screenshots of the game. The penalty time was displayed right below the other two times. I think the new position is a side effect of the fix for the issue I mentioned above. I attached a little patch to put the time back to its previous position.

     
  • Onsemeliot

    Onsemeliot - 2020-10-10

    Thanks. It is included in r990.

     

Log in to post a comment.