| |
|
Hazania
|
  |
| Joined: 04 Jun 2010 |
| Total Posts: 1344 |
|
|
| 10 Oct 2017 01:00 AM |
| Primarily, it is used to track frames so that you can have Guis or scripts that update every frame the player sees. |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 02:41 AM |
One of its "properties" (i'ma get roasted for saying that) is RenderStepped. What RenderStepped is, is it fires on EVERY frame loaded.
So if a player is getting 60 FPS, then it happens 60 times a second. So say you want something updating faster than while wait() do end, this is your guy.
e.g.
game:GetService("RunService").RenderStepped:connect(function() print("This is happening very quickly!") end)
|
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 03:08 AM |
| What if you were to try and make something happen just as fast, but on the server? (Considering you cna't use it on there ## #### |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 03:11 AM |
You should never need to run things at 60 hertz in Roblox. It's inefficient. Make it delay more, not less. That's just for doing stuff in general.
HOWEVER RenderStepped is useful when dealing with the camera or GUIs. For example, if you want to use WorldToViewportPoint to make your own BillboardGui hovering over someone's head, it will be kind of flickery and jumpy if you use wait. This is where you use RenderStepped.
|
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 03:13 AM |
| So I would use this to make for example a cinema screen? |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 03:16 AM |
I'll make a quick demo place so you can see what I mean.
|
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 03:31 AM |
Here you are. https://www.roblox.com/games/1098443312/JarodOfOrbiters-Place-Number-44
Go crazy with your camera, you'll see a bit of lag on the wait version. When you're working with rendering, use RenderStpped. An even better example is when you use a custom camera. If you use 'wait', your whole screen will be flickery when the camera moves.
|
|
|
| Report Abuse |
|
|
|
| 10 Oct 2017 03:40 AM |
thnx alot having those guis look at me made me think of doomguy :D |
|
|
| Report Abuse |
|
|