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 :(
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 :(