Stage3D Constrained mode

Software: Away3D 4.x

laurent, Newbie
Posted: 28 September 2012 03:18 PM   Total Posts: 29

From Flash Player 11.4, the “constrained mode” allows you to increase your GPU reach: http://forums.adobe.com/message/4637119

I have read on Adobe blog that away3d is going to support it.
Is it the case? If yes, what will be the limitations in term of shaders?

   

Avatar
kurono, Sr. Member
Posted: 17 October 2012 10:18 PM   Total Posts: 103   [ # 1 ]

It’s pretty possible now, but note that your AGAL code can’t exceed 96 lines! :(

For my old (i.e. “unsupported” for Stage3D) Intel GMA 900 I’ve surprised to see at least x6 increasing of performance (from 10 to 60 FPS) in comparison with “software mode”.

What you have to do:
1) Install FP 11.4
2) Slightly modify Stage3DProxy’s “requestContext()”. Change just one line:

//_stage3D.requestContext3D();
_stage3D.requestContext3D(Context3DRenderMode.AUTOContext3DProfile.BASELINE_CONSTRAINED); 

And don’t forget to add a few lines to imports:

import flash.display3D.Context3DProfile;
import flash.display3D.Context3DRenderMode

3) Compile with -swf-version=18

Also to make sure constrained mode is supported and everything works as expected, see “view.stage3DProxy.context3D.driverInfo”.

But it’s impossible to use any lighting and PP effects (due to code overflow, as I said) without any serious modifying of shaders or rendering pipeline.

   

GiGBiG, Member
Posted: 16 January 2013 08:46 AM   Total Posts: 57   [ # 2 ]

Please can you explain better the AGAL part? Thanks

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X