In an air app I'm using loading swfloader to load a 600x800 swf game. In flex I detect the screen size and scale the swf to full screen. The swfs are simple games but they stutter at full screen. I've used the latest flash player, cached as bitmap, GPU render and other recommended optimizations but even at 15fps its still not smooth. Is there anything else I can do (short of moving to starling)? Im assuming the graphics are being rescaled every frame and this would be very cpu/gpu intensive. Rescaling all the game graphics individually (there are several games) would be a big job but is there a way to tell the swf to prescale all the graphics at the beginning of the game or there another major optimization I can do?
Thanks for the reply.
Have tried to have minimal Flex content in the background, have two fullscreen display objects (can reduce it to one). The Flex starts with this:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
homeScreen = new HomeScreen();
addElement(homeScreen);
The 'homescreen' loads the game swf. It also has several buttons on it, but these should be being removed when the game is running as they are in a different "State".
I'm using Flex to handle the scaling:
<s:SWFLoader id="swfLoader" source="game.swf" scaleX="{myScale}" scaleY="{myScale}" complete="prepareGame();"/>
Is there a better way?
North America
Europe, Middle East and Africa
Asia Pacific