Object rotation 'choppy'

I use the following code to rotate an object. The rotation is sometimes smooth, usually during development, but once deployed it stutters and has random pauses in it.

What’s the best way to have a smooth consistent rotation for an object?

Code:

 @editable
    LightProps:[]creative_prop = array{creative_prop{}}

    OnBegin<override>()<suspends>:void=  
        loop:     
            Sleep(0.0) # Hack: prevent infinite loop

            if (Prop := LightProps[1]):
                PropTransform := Prop.GetTransform()
                Prop.MoveTo(PropTransform.Translation, PropTransform.Rotation.ApplyLocalRotationZ(10.0), 1.0)