[Solved] Display Framerate (In FPS) In A Ren'Py Game
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Newbie
- Posts: 10
- Joined: Sun Jul 07, 2019 10:47 am
- Contact:
[Solved] Display Framerate (In FPS) In A Ren'Py Game
Hello, I'm thinking of having a shooter section in my game which will require to have 100+ objects on the screen at a time (with x/y velocity/acceleration, etc). Right now everything still seems to run smooth (last test: about 60 objects on screen), but I'd like to check the performance in real time by looking at numbers, so is there an easy way to display the fps in my game (kinda like when using FRAPS) and if there isn't what kind of programs/software/etc. do you recommend to measure the fps?
Last edited by Spacepiratehacker54 on Fri Oct 04, 2019 5:27 pm, edited 1 time in total.
- RicharDann
- Veteran
- Posts: 286
- Joined: Thu Aug 31, 2017 11:47 am
- Contact:
Re: Display Framerate (In FPS) In A Ren'Py Game
You could just run Fraps and then your game (Fraps should be able to detect and overlay the framerate in Ren'Py).
If you want to do from Ren'Py itself in realtime, I guess you could maybe do this (UNTESTED):
Not sure if that in itself would impact performance though.
If you want to do from Ren'Py itself in realtime, I guess you could maybe do this (UNTESTED):
Code: Select all
screen fps_display():
$ frames = renpy.get_refresh_rate()
text "[frames]"
timer 1 repeat True action SetScreenVariable('frames', renpy.get_refresh_rate())
label start:
show screen fps_display
The most important step is always the next one.
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Display Framerate (In FPS) In A Ren'Py Game
... or just
Code: Select all
show screen _performance
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
-
- Newbie
- Posts: 10
- Joined: Sun Jul 07, 2019 10:47 am
- Contact:
Re: Display Framerate (In FPS) In A Ren'Py Game
F3 doesn't work for me for some reason, but Remix's suggestion did the job. Thanks!
Who is online
Users browsing this forum: No registered users