generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: lock fps to 30?

Previous Thread :: Next Thread 
KAMIKAZEPOLO is not online. KAMIKAZEPOLO
Joined: 14 Mar 2012
Total Posts: 1049
05 Aug 2017 11:04 AM
im making a 2d game

(if u wanna see it)
https://www.roblox.com/games/148110952


and im trying to get the fps to lock at 30

the reason why is the game's performance drops down to 30 with a little over 60 objects on the screen.

ik my game is going to have more than 60 objects, and I just want the frames to be consistent.

how do I do this?
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
05 Aug 2017 11:18 AM
local ev = Instance.new("BindableEvent", *Insert location here*)
local val = 1
game:GetService("RunService").HeartBeat:Connect(function()
val = val + 1
if val%2 == 0 then
ev:Fire()
val = 1
end
end)
local HalfBeat = ev.Event

To use this use HalfBeat:Connect(function()end)

Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
05 Aug 2017 11:19 AM
Making everything change at a lower rate will cause smoother FPS. You can decrease the FPS even further for background stuff.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image