How to switch render mode by code?

Software: Away3D 4.x

clarkh, Newbie
Posted: 09 September 2013 10:55 AM   Total Posts: 2

When lost device(Ctrl + Alt + Del), away3d will recreate the scene, it’s useful! But sometimes(after running some other fullscreen game/applacation), the scene recreated by away3d is render in software-mode.
Now I want to change the render mode to GPU mode, how to?
PS: I will change mode after other game closed, so the GPU is idle.

   

Avatar
SharpEdge, Member
Posted: 09 September 2013 11:30 AM   Total Posts: 94   [ # 1 ]

From: Adobe AS3 Documentation

Enable hardware graphics acceleration in an AIR application by including <renderMode>gpu</renderMode> in the application descriptor (or use <renderMode>direct</renderMode> to leverage Stage3D). You cannot change render modes at runtime. On desktop computers, using <renderMode>gpu</renderMode> will fallback to <renderMode>direct</renderMode>.

It’s not possible to change renderMode at runtime.

   

clarkh, Newbie
Posted: 09 September 2013 12:43 PM   Total Posts: 2   [ # 2 ]
SharpEdge - 09 September 2013 11:30 AM

From: Adobe AS3 Documentation

Enable hardware graphics acceleration in an AIR application by including <renderMode>gpu</renderMode> in the application descriptor (or use <renderMode>direct</renderMode> to leverage Stage3D). You cannot change render modes at runtime. On desktop computers, using <renderMode>gpu</renderMode> will fallback to <renderMode>direct</renderMode>.

It’s not possible to change renderMode at runtime.

I trace(stage3DProxy.usesSoftwareRendering) onEnterFrame, it’s “false” at first. Keep AIR application open, and I opened another windows fullscreen game, and exit game, the AIR application trace(stage3DProxy.usesSoftwareRendering) output “true”, so sometimes the render mode changed at runtime, I want know is away3d change it or fp change it

   

Avatar
SharpEdge, Member
Posted: 09 September 2013 12:49 PM   Total Posts: 94   [ # 3 ]

I think it’s FP to change it when the O.S. asks him to do so, but the point is that there is no way for you to set it back to direct/gpu.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X