Is there a way to access the AwayStats driver variable to reveal which mode the application is using (Software, OpenGL, DirectX). Ideally there could be actions taken if this variable can be read.
AwayStats DriverSoftware: Away3D 4.x |
||
|
||
|
||
|
||
|
||
|
||
Lucid, Member
Posted: 04 April 2012 01:58 PM Total Posts: 93 [ # 5 ] @ kurono I’ve tried checking immediately after the view has been added to the stage, but I get an error. When can I check this value so it would return a proper value? This yields an error if checked (to soon I suppose) (and yes, my View3D is also named view) |
||
Lucid, Member
Posted: 04 April 2012 02:06 PM Total Posts: 93 [ # 6 ] FYI I’ve added this to the enter frame function: It does eventually begin to trace ‘OpenGL (Direct blitting)’. Is there, however, an accurate way to trace for this - meaning, is there a way to know this value is ready - such as adding some kind of event listener to the view? |
||
kurono, Sr. Member
Posted: 04 April 2012 03:57 PM Total Posts: 103 [ # 7 ] I’m not well-experienced in Away3D’s API, but I can give you some advances for direct listening. 1) Away’s “Stage3DProxy” class represents current Stage3D (one of 4 possible). So, I believe you can use it as Stage3D. 2) Assume, stage3d:Stage3D = stage.stage3Ds[0];
stage3d.addEventListener(Event.CONTEXT3D_CREATE, onInit); And smth like this:
private function onInit(e:Event):void { This’s the way to check if context3d is available now. |