Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Custom your Game's running speed. [RMXP]

DJ

Some guy that did RMXP before
Member

Hi, guys.
I was messin' around with my game, and I found out a funny thing :
You can custom your FPS in RMXP.
So I'm going to let you guys how to do it.
but this one is really simple, and so it isn't really good at all.
So, If you have ideas to improve it, give a reply.

This is how to do it :
1. First, Open up your script editor (F11) and go into Scene_Map class.
2. look at defenition update (def update)
Code:
unless $game_player.moving?
Find this code. and put
Code:
Graphics.frame_rate = 60
this code above.
Then run your game. When you're in map, you can see it is running in 60FPS.
and also, you can make your entire game in your custom speed by putting
Code:
Graphics.frame_rate = 60
frame rate code in main class (which is in bottom)

* Result :Some bad computers just gets worse FPS sometimes, but this one works in most of computers.
 
was mentioned in the helpfile

just because its simple doesnt mean its no good. that number is all they changed in VX and people rave about it :D
 
Indeed... nothing special about it.

By the way, you can use any value between 10 and 120. But don't expect that it'll run on 120 FPS on every computer. You may found that changing the FPS will result in major slowdown sometimes...
Oh yeah, the FPS is halved when running on Smooth Mode.

Haha. Cheers! :biggrin:
SEE YA!!!!!
 
LegacyCrono":1hofywfn said:
Indeed... nothing special about it.

By the way, you can use any value between 10 and 120. But don't expect that it'll run on 120 FPS on every computer. You may found that changing the FPS will result in major slowdown sometimes...
Oh yeah, the FPS is halved when running on Smooth Mode.

Haha. Cheers! :biggrin:
SEE YA!!!!!

Actually, the FPS is halved when it is NOT running on smooth mode. RMXP has a script speed of 40fps, but, when it is not on smooth mode, it is displayed at 20fps.
 

DJ

Some guy that did RMXP before
Member

SolstICE":1n1i9f4r said:
was mentioned in the helpfile

just because its simple doesnt mean its no good. that number is all they changed in VX and people rave about it :D

Oh god, you were right.
I read the help file of RGSS and there was a mention of Raising speed by
changing Graphics.frame_rate. :cry:

Yeah, It's not very good always. but, this could be useful in some ways maybe
 
DJ":2k7jcz9f said:
SolstICE":2k7jcz9f said:
was mentioned in the helpfile

just because its simple doesnt mean its no good. that number is all they changed in VX and people rave about it :D

Oh god, you were right.
I read the help file of RGSS and there was a mention of Raising speed by
changing Graphics.frame_rate. :cry:

Yeah, It's not very good always. but, this could be useful in some ways maybe

Actually, it is in the help file. Look up the page on Graphics. At the bottom, it says:

Graphics.frame_rate
In [Smooth Mode], the number of times the screen is refreshed per second. The larger the value, the more CPU power is required. Normally set at 40. When not in [Smooth Mode], the refresh rate is halved, and graphics are drawn in every other frame.

Changing this property is not recommended; however, it can be set anywhere from 10 to 120. Values out of range are automatically corrected.
 
While both RGSS and RGSS2 can change Graphics.framerate, it doesn't work quite the same in RGSS - try setting it to 60 and then running an RMXP game with F2 pressed and you'll see. It seems to keep it at 40 fps for a longer time, but does not raise it to 60 (only RGSS2 has the ability to get to 60 fps).
 

DJ

Some guy that did RMXP before
Member

sometimes it raises to 60 FPS , but In some laggy place
(such as a map with bunch of events)
It works horrible.
 
SolstICE":8pze88be said:
um no i run xp at 120 fps like all the time
but there is bit more jitteryness with the screen than doing that in vx

Run at 120 fps, or set to 120 fps? Press F2 and see if it actually is.
 
run at 120 fps. i know how to use f2

rmvx program actually lies about the fps btw. thats why you almost always see high numbers with f2 even when its running like slug. you can get real fps from alias graphics class
 

Zeriab

Sponsor

Graphics.frame_rate specifies the intended frame rate of the game for both RGSS and RGSS2 and the range is 10-120 as already mentioned.
The frame rate is the amount of frames rendered each second. If you have a frame rate of 120 then 120 frames should be processed and rendered each seconds while only 10 frames should be rendered with a frame rate of 10.
What happens if processing a frame takes longer than the allotted time? I believe that the game tries to spew out frames as fast as possible although I am unsure whether the engine skips any parts or not.
What happens if processing a frame takes a shorter time than the allotted time? The processing of the next frame is halted until the allotted time has passed.
I have once tried breaking the halting to keep the correct frame rate resulting in a frame rate swinging wildly and going up to 400 FPS. (There wasn't a lot to process)

You can use the frame rate to mess with the player's perception of time.
You can also use it for debugging and beta testing. It is not uncommon for me to set the frame rate to 100 or 120 when testing.

*hugs*
- Zeriab
 
Actually, the FPS is halved when it is NOT running on smooth mode. RMXP has a script speed of 40fps, but, when it is not on smooth mode, it is displayed at 20fps.
Whoops, my bad. :)

I have once tried breaking the halting to keep the correct frame rate resulting in a frame rate swinging wildly and going up to 400 FPS. (There wasn't a lot to process)
Uh, but it's preety pointless, isn't it? :tongue:

You can also use it for debugging and beta testing. It is not uncommon for me to set the frame rate to 100 or 120 when testing.
Hey, that's a nice idea... :thumb:


SEE YA!!!!!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top