Skip to main content
Participant
October 13, 2020
Question

frame rate stuck at 25

  • October 13, 2020
  • 1 reply
  • 143 views

I want my frame rate to be 100 and it is until I play the animation, when I do the frame rate drops down to 25-30 fps

anyone can help me please

 

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 13, 2020

your hardware can only play at the rate it can handle.

 

test by putting nothing on stage and checking if your frame rate is close to what you assign in the properties panel.

 

if you're using as3:

 

import flash.utils.Timer;
import flash.events.TimerEvent;

var fps:Number;

var currentT:int = getTimer();
var currentF:int = this.currentFrame;
var t:Timer = new Timer(1000,0);
t.start();
t.addEventListener(TimerEvent.TIMER,f);


function f(e:TimerEvent):void{
fps = (this.currentFrame - currentF)*1000/(getTimer()-currentT);
trace(fps);
currentF = this.currentFrame;
currentT = getTimer();
}