Hello,
I noticed that Renderstepped, Stepped, and Heartbeat are deprecated and replaced. Can someone elaborate on which functions do which? And their differences.
Thanks.
Hello,
I noticed that Renderstepped, Stepped, and Heartbeat are deprecated and replaced. Can someone elaborate on which functions do which? And their differences.
Thanks.
RunService.PreRender
is the new RenderStepped
RunService.PreSimulation
is the new Stepped
RunService.PostSimulation
is the new Heartbeat
There is also RunService.PreAnimation
, which fires before RunService.PreSimulation
but after RunService.PreRender
. All else is the same
Indeed, I noticed the replacement. I’m mostly asking which one is which and if the new events are better performance-wise.
Great! Thank you for your clarification. Do you know which one would be the fastest? If you don’t mind me asking.
I should have used an ordered list instead of unordered, my bad. I changed it.
…?
Sorry, I don’t understand what you mean.
game:GetService("RunService").PreRender:Connect(function()
for i,v in pairs(workspace:WaitForChild("Balloon"):GetChildren()) do
v:SetPrimaryPartCFrame(v.PrimaryPart.CFrame:Lerp(v.PrimaryPart.CFrame * CFrame.new(0,math.sin(tick() * 2) /3.5, 0), 0.3))
end
end)
It’s not even doing anything.
iirc they are not enabled yet.
Considering there is no documentation for the new events on the api they might not be available yet. I would continue using the old events until then.
Ok thank you so much :D. And is PreRender supposed to be faster?
The new events are documented, right? I saw them on the release notes.
Ah, that’s why I went here to ask. Are they not available right now? I’d like to make the transition early.
According to @FelixProfit’s test they don’t work yet. Roblox will probably make an announcement when they are ready.
It would be nice to let people know on the API that they are currently not enabled. I’ve have been trying to get it working for the past 30 minutes and I had no clue what was wrong until now.
If there was no announcement then you can probably assume it’s not ready to be used yet. Besides, from my experience, it’s not like your game will instantly break if you’re using a depreciated one. You’ll have time to change it.
See RenderStepped, Stepped, or Heartbeat - #2 by rogchamp. It’s not a matter of speed, it’s a matter of when they happen.