Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What's the difference between RunService.RenderStepped, Stepped, Heartbeat?

Asked by 5 years ago

I was learning about RunService. But when I read about RunService.RenderStepped, Stepped, Heartbeat's description, it says they all fire every approximately 1/60th of a second. If they all fire at that time and rate, what's the difference between them all?

0
I think the fire rate varies with the client's frame rate and i think renderstepped runs before stepped which runs before heartbeat theking48989987 2147 — 5y

1 answer

Log in to vote
2
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
5 years ago
Edited 5 years ago

The RenderStepped event fires right before a new frame is drawn, and can only be used on the client. It's usefull for things like UI or Camera movement.

Heartbeat fires before every physics update and Stepped fires after the physics update.

All these events usualy fire around 60 times per second, but it could get decreased if your server is heavily loaded. (Or if your pc is a potato, for RenderStepped, that is.)

0
What do you mean by before a new frame id drawn and physics update? (Sorry I'm new.) User#24541 10 — 5y
0
^ you might want to read about what frames are (and FPS is) https://en.wikipedia.org/wiki/Frame_rate User#22604 1 — 5y
Ad

Answer this question