Hello Pete, that works! =) This is the normal browser view: http://away3d-dev.googlegroups.com/web/screenshot01.jpg
When I switch to fullscreen just using this single line ... stage.displayState=StageDisplayState.FULL_SCREEN; ... it looks like this (and frame rate drops to some 13 FPS): http://away3d-dev.googlegroups.com/web/screenshot02.jpg But if I add your code ... var scalingRect:Rectangle=new Rectangle(0,0,500,375); stage["fullScreenSourceRect"]=scalingRect; stage.displayState=StageDisplayState.FULL_SCREEN; ... it looks like this (with the same framerate as in normal browser view =): http://away3d-dev.googlegroups.com/web/screenshot03.jpg Thank you! Stefan On 5 Mrz., 18:23, Peter Kapelyan <flashn...@gmail.com> wrote: > I dug up some old code that was never used, maybe it might help or make > sense: > > var scalingRect:Rectangle=new Rectangle(0,0,768,432); > stage["fullScreenSourceRect"]=scalingRect; > if (stage.displayState==StageDisplayState.NORMAL) { > stage.displayState=StageDisplayState.FULL_SCREEN;} else { > > stage.displayState=StageDisplayState.NORMAL; > > } > > Notice the rectangle which should be the size of your swf now...don't know > if this is all the code you'll need but obviously it's very different that > just plain fscommand("fullscreen", "true"); > > -Pete > > > > On Fri, Mar 5, 2010 at 12:15 PM, Peter Kapelyan <flashn...@gmail.com> wrote: > > There is an option to turn off scaling and such, try to play around. I > > don't see why frame rate would increase if the SWF stays the same > > resolution, in fact it *should* be faster since there is nothing else on > > screen. > > > -Pete > > > On Fri, Mar 5, 2010 at 12:09 PM, Stefan <stefan.ramsa...@freenet.de>wrote: > > >> Hello Pete, Hello all, > >> just tried in fullscreen (with standalone player and embedded in > >> website). Also chews up frames. > > >> Well, worth a try =) > >> Thanks for your help! > > >> On 5 Mrz., 17:27, Stefan <stefan.ramsa...@freenet.de> wrote: > >> > Thanks Pete! I will give fullscreen a try =) > > >> > On 5 Mrz., 16:38, Peter Kapelyan <flashn...@gmail.com> wrote: > > >> > > No, the more "stage" the flash player has to render, the slower it > >> would be. > >> > > You can try the reverse, make the SWF in the HTML smaller, and see it > >> go > >> > > faster. This has to do with redraw regions also. > > >> > > As an alternative, try using the fullscreen function, that would > >> maintain > >> > > your resolution, but scale your monitor down, and it should run just > >> as > >> > > fast. > > >> > > -Pete > > >> > > On Fri, Mar 5, 2010 at 10:24 AM, Stefan <stefan.ramsa...@freenet.de> > >> wrote: > >> > > > Hello all, > >> > > > created a scene with the size of 500x375 pixels. Then embedded it > >> into > >> > > > a html page and set the width an hight properties 1000x750. > > >> > > > Actually I thought that this would not affect the framerate (as it's > >> > > > only scaling the already rendered objects, right?) - but it does. > >> > > > Frames per second dropped from average 35 frames to 15 frames. > > >> > > > What am I doing wrong? Could somebody please explain? Is there a way > >> > > > to scale the movie without loosing frames? > > >> > > > Thanks in advance, > >> > > > Stefan > > >> > > -- > >> > > ___________________ > > >> > > Actionscript 3.0 Flash 3D Graphics Engine > > >> > > HTTP://AWAY3D.COM > > > -- > > ___________________ > > > Actionscript 3.0 Flash 3D Graphics Engine > > > HTTP://AWAY3D.COM > > -- > ___________________ > > Actionscript 3.0 Flash 3D Graphics Engine > > HTTP://AWAY3D.COM