Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Difference between heartbeat / renderstepped?

What is the difference between heartbeat and renderstepped?

1 comment

0

Search please.

1 answer

✓ Accepted answer

So basically both of them run at the framerate of the game, but renderstepped is ran before rendering, whereas heartbeat runs after rendering. So with this is mind, anything that involves how the game should be rendered camera, cframing, etc, that you want to call everytime the game is rendered, should be done with renderstepped. On the contrary, any thing that you want to run every frame but doesn't involve rendering should be run with heartbeat. If what you are doing with these functions is minor then these don't really matter all that much, but running a lot of code in renderstepped that doesn't affect rendering can possibly cause lag. Hope this helps :).

This discussion is preserved as it was. New answers, comments, and votes are closed.