I've been curious about how well RenderStepped really runs. In a client-side script, I have a While true do loop and a RenderStepped. Both are performing the same exact operations, using Tick to update a value every one second.
Which one would hog the most CPU?

5 comments
What is the point of doing this? They're both separate that have nothing to do with each other.
Well considering RenderStepped runs 60 frames per second which equals to running every 0.0166 seconds and a while loop using wait() would run about every 0.03 seconds. RenderStepped would cost more CPU because it's called more often and should be used for updating the client's visuals as it is fired every frame. I would recommend using the loop with wait,, tick for updating a value every second.
If a client's framerate drops then RenderStepped would fire less often which would leave you with getting incorrect results for updating the value every second. Using wait would actually yield the thread for the x amount of time and not count on the client's frame rate
i really think that renderstepped is laggier, i really don't know, its just my inference, because I used while true do wait() often and it doesn't lag as much
try both if you want to see what is more laggier