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

Using CFrame on Motor.C1 causes mass reduction in frame rate?

Asked by
traigla 75
9 years ago

I'm using Motor.C1 throughout my script and whenever a CFrame is running on the C1, my frame rate drops by about 30-40 fps. It's also happening for other players. Is there a way to reduce the lag here?

Thanks.

for i=0,script.Parent.Parent.Settings.FlapsOffset.Value,0.01 do
    plane.Flap01.A.Motor.C1 = plane.Flap01.A.Motor.C1 * CFrame.new(0.01,0,0)        
    plane.Flap03.A.Motor.C1 = plane.Flap03.A.Motor.C1 * CFrame.new(0.01,0,0)
    plane.Flap05.A.Motor.C1 = plane.Flap05.A.Motor.C1 * CFrame.new(-0.01,0,0)
    plane.Flap07.A.Motor.C1 = plane.Flap07.A.Motor.C1 * CFrame.new(-0.01,0,0)
    wait(0.01)
end
0
You are updating the motor C1s quite fast, and the engine is struggling to simulate the changes just as fast. That's probably it. Marios2 360 — 9y

Answer this question