ActionScript 3 high precision method (microseconds)?

I need a high-precision method of time in microseconds rather than milliseconds for actionscript, unfortunately, I could not find much help on the Internet.

I need such control in order to implement the use of fixed time reference in transitions, as described in this article: http://gafferongames.com/game-physics/fix-your-timestep/ , in order to solve my problem described in Optimizing transition smoothness / movements for a 2D flash game

Any suggestions?

+4
source share
2 answers

It's impossible.

+7
source

Although this is not faultlessly accurate, I believe that it has more time than relying on ENTER_FRAME.

public var t:Timer; public var initialTime:int; public function setup():void{ t=new Timer(1000); //in miliseconds t.addEventListener(TimerEvent.TIMER, onTimerTick); t.start(); initialTime=getTimer(); } public function onTimerTick(e:TimerEvent):void{ trace("elapsed:"+getTimer()-initialTime); } 
0
source

All Articles