#Camera bug

1 messages · Page 1 of 1 (latest)

red roost
#

Hi everyone! I'm using an old camera script for my game which is supposed to mimic old roblox, i have an FPS limiter aswell but it seems to cancel that out? I have the scripts below too.

local MaxFPS = 30

-- fps to mimic old roblox
while true do
    local t0 = tick()
    RunService.Heartbeat:Wait()
    repeat until (t0 + 1/MaxFPS) < tick()
end```

camera script won't send unless in text document, so take that as you will
jagged forge
#

i'm assuming you're saying the camera script ignores the fps limiter you've set up? I suggest reading on the RunService documentation to get a clearer picture to the order of the events which happen

#

both use different events within the frame cycle and likely causes your "canceling out" issue, though it's just an assumption

#

the two events i refer to are "BindToRenderStep" which fires during the "PreRender" event, the other being the "Heartbeat" event