PDA

View Full Version : Video, Fullscreen and FPS



Hakushi
April 25th, 2008, 04:28 PM
Hi guys,

my problem is "simple" (not that simple :-/) , so, when i put my video on fullscreen mode, the FPS goes down (from 26fps to 9fps), and i have no idea from what cause this.

The only thing i do with my video on fullscreen mode is resize it:


if (Core.stage.displayState == StageDisplayState.FULL_SCREEN)
{
_Conf["clip"].videoMask.width = Core.stage.width;
_Conf["clip"].videoMask.height = Core.stage.height;

var ratio:Number = target.video.display.videoWidth / target.video.display.videoHeight;
ratio = (isNaN(ratio))? (4/3) : ratio;
target.video.width = Core.stage.stageHeight * ratio;
target.video.height = Core.stage.stageHeight;

target.video.x = (Core.stage.stageWidth - target.video.width) / 2;
}
I don't think that cause the "bug", it's been 2days know that i'm seeking the web in search of a solution or explanation to my problem, and i really want to end this calvary :(

magcius
April 25th, 2008, 05:00 PM
Drawing the video takes CPU power. Also, try removing the mask, that should help A LOT.

Also, is this snippet happening every frame? If so, only call it when you change into full screen.

Hakushi
April 25th, 2008, 05:02 PM
The snippet is called on FullScreenEvent only :D

I'll try to remove the mask and i let you know.

Hakushi
April 25th, 2008, 05:42 PM
It works!!! :pope: Thanks a lot!