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.

frame rate question/discussion

so i was talking to brew about this line of code : Graphics.frame_rate = 40
i was wondering if i shouldnt use it, it works amazing on my computer, but i dont know if it will effect game play on other computers. so i guess my real question is: would you use this line of code? if yes or no please leave a detailed answer :) thanks
 
It all depends on your audience. RMXP cuts that number in half for the graphics displays on lower power computers, and it will have problems when that number is higher. Some scripts call that with the intent that it represents one second, as well. I have a computer that came with Windows ME, and it can run it just fine with the value at 40 (Although, as I said, it does get cut in half for display), and I tried raising it with disastrous consequesnces. Still, I don't use that computer much, preferring instead my laptop that can beat our most recent desktop in any power category. (I think it even has twice as much RAM, which, considering the Desktop is Vista and the laptop is XP, isn't good)
 
lol ya my laptop blows desktop out of the water too, but thats not what i should be discussing, so i just thought of another question if i am making it run at 40 fps is that going to make issues for the people who have worse computers? (my beta testers run at 200(allthough they dont get more then 60), makes the game run aton faster it is glitchy but they wated to be able to skip text, and cut scenes, eta and i didnt want to mod every event) something ive noticed to and i want to know if it is true, when i use the wait 20 frames in a event it would normally be about 1 second and @ 40 fps you would exspect 1/2 a second but it still takes 1 second, whixh is amazing in my opinion but im not sure why it comes to that.

p.s. i timed it 20(wait) @ 40 fps = .973 seconds
p.s.s.what do you think of that?
 
deathbethecost":10sazero said:
p.s. i timed it 20(wait) @ 40 fps = .973 seconds
p.s.s.what do you think of that?

That would be because the game automatically corrects it is smooth mode is on. It expects you to put in a frame count that would be half of the number you'd need in scripts, and will double it if smooth mode is on. (So, a 40 count in my thunderstorm script must be a 20 count in my thunderstorm event)
 

arev

Sponsor

Actually the Wait: 20 lasts 40 frames just because of this command in the Interpreter:
Code:
  def command_106

    # Set wait count

    @wait_count = @parameters[0] * 2

    # Continue

    return true

  end
You might as well make it last 60, 80 or 20 frames.
As for using the "Graphics.frame_rate" it really depends on the game you're making. Sometimes RMXP will handle 60+ fps with no problem, even on older machines. Other times it won't be able to sustain the default 40 fps on a 3,5 GHz processor. If you want your game smoother you might want to think of playing it with VX's exe file. There's a tutorial on how to do it (by Dargor). I'm using it to run my game at 50 fps, where XP's exe had problems with 35 :)
 

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