@roaminggamer Yes, i read that article before and using it in my game! As you see
[lua]local dt = (temp-runtime) / (1000/60) --60fps or 30fps as base[/lua]
(1000/60) is just a constant number, so my code above will produce the same delta time effect. So when run that example on real device, it is till not smooth!
If we print dt, you will see delta time change from 0.94 ~ 2.1 (see log bellow). So if we translate box by dt * 5, in some frame, it moves 5 px but in other frame, it will move 10 px, that will cause zig zag effect (not smooth movement at all).
(Sorry for my bad of english, but you can build that example, comment rotation and scale code, just keep moving code and see on real device - especially on android - the box will moving with some lag!)
Apr 28 23:42:49.475: 0.95639999999992
Apr 28 23:42:49.511: 2.1260400000001
Apr 28 23:42:49.525: 0.86069999999985
Apr 28 23:42:49.542: 0.98268000000004
Apr 28 23:42:49.558: 0.97770000000011
Apr 28 23:42:49.575: 1.05342
Apr 28 23:42:49.592: 0.98165999999983
Apr 28 23:42:49.610: 1.0677000000001
Apr 28 23:42:49.625: 0.94997999999992
Apr 28 23:42:49.642: 0.9873000000001
Apr 28 23:42:49.659: 1.0121399999999
Apr 28 23:42:49.675: 0.99582000000009
Apr 28 23:42:49.685: 0.54858
Apr 28 23:42:49.701: 0.96461999999985
Apr 28 23:42:49.717: 0.96366000000009
Apr 28 23:42:49.732: 0.94265999999996
Apr 28 23:42:49.748: 0.95184000000008
Apr 28 23:42:49.764: 0.96101999999999
Apr 28 23:42:49.780: 0.94445999999989
Apr 28 23:42:49.809: 1.7160000000001
Apr 28 23:42:49.825: 0.99401999999995
Apr 28 23:42:49.842: 1.0066199999999
Apr 28 23:42:49.859: 1.0056600000001
Apr 28 23:42:49.875: 0.99851999999999
Apr 28 23:42:49.892: 1.0108799999999
Apr 28 23:42:49.909: 0.99696000000011
Apr 28 23:42:49.925: 0.94956000000006