Performance tips with Scout Data

Software: Away3D 4.x

Matej, Jr. Member
Posted: 05 September 2013 09:59 AM   Total Posts: 38

Hello,

Here I will post what takes the most performance in my scout profiling, so If you can tell me what part of the game should I optimize with it.

I am doing a game for mobile
dont mind the numbers, this is just the functions that have the biggest ms execution time

MeshNode.acceptTraverser (away3dGold.core.partition1,595 215,320 20%
                  
AxisAlignedBoundingBox.isInFrustum (away3dGold.bounds5,859 77,794 10%
              
EntityCollector.applyRenderable (away3dGold.core.traverse2,369 33,878 5%
                  
CompiledPass.render (away3dGold.materials.passes6,993 918,780 25%
      
Mouse3DManager.updateCollider (away3dGold.core.managers97 03,080 4%
        
RaycastPicker.getViewCollision (away3dGold.core.pick272 02,904 3

I am loading an AWD file and then using the geometry from AWD to create a mesh.
I am using one single Texture, and then I scale and offset UVs to position the texture correctly
When meshes are not visible I make visible=false and also I enable and disable mouseEventListneres where needed and not needed.

 

 

 

   

Avatar
SharpEdge, Member
Posted: 05 September 2013 12:35 PM   Total Posts: 94   [ # 1 ]

I think it’s better to set mouseEnabled = false instead of remove event listeners because if you remove only the listeners away3d will consider anyway the object when doing calculations.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X