Stage3DProxy in a Worker

159 views Asked by At

I'm attempting to put an Away3d in a worker to separate the 3D and the UI and reduce performance lag on mobile.

As soon as the Away3D attempts to get a free proxy

stage3DProxy = stage3DManager.getFreeStage3DProxy();

I get the error

Too many Stage3D instances used!
    at away3d.core.managers::Stage3DManager/getFreeStage3DProxy()[C:\workspace\flash\libs\lib_pano_away3d\src\away3d\core\managers\Stage3DManager.as:98]
    at away3d.containers::View3D/onAddedToStage()[C:\workspace\flash\libs\lib_pano_away3d\src\away3d\containers\View3D.as:931]
    at flash.display::DisplayObjectContainer/addChild()

Does anyone know if there are issues with loading Stage3D in a Worker?

1

There are 1 answers

0
beek On

You can't run stage3D in a worker because the worker can't access the stage or any display lists.