Away3d 4 performance tuning

Software: Away3D 4.x

jtopaz, Member
Posted: 01 July 2011 04:14 PM   Total Posts: 53

Hi Everyone,

I have make 3d scene with only 3,000 triangles but it is much much slower than the away3d official example (Shallow Water Simulation with 80,000 triangles). After I remove the material lighting and fog method, it is 60% faster but still much slower than the official example. I still don’t know why my 3d scene are slow.

My question is “Any guideline for away3d 4 performance tuning”?

Some of my question:
- Should we avoid using any kind of texture, lighting.
- Is triangle the biggest contribute to away3d performance?
- Will model file format count to performance?

thx

   

Avatar
Alejandro Santander, Administrator
Posted: 01 July 2011 04:52 PM   Total Posts: 414   [ # 1 ]

Hi jtopaz,

May I ask how many meshes you are using to hold those 3000 triangles?

The shallow water demo is fast because it uses only 1 mesh, hence putting all those triangles into a single vertex buffer (and other buffers needed for shading).

A buffer can hold a certain number of triangles (a number which is very big) and using many buffers with a low number of triangles is a waste of resources.

This is not something that applies only to Away3D, it is a common matter in GPU stuff.

   

Mr Margaret Scratcher, Sr. Member
Posted: 01 July 2011 06:42 PM   Total Posts: 344   [ # 2 ]

Aha… I will be running into this problem quite soon, and it was something i was wondering about…

So what’s the best way to dynamically create about 4000 cubes, be able to texture them all individually and be interactive?

   

Avatar
Alejandro Santander, Administrator
Posted: 01 July 2011 07:19 PM   Total Posts: 414   [ # 3 ]

Fabrice recently commented about this and mentioned tools.Merge.as

As for texture I would imagine some sort of blitting technique.

As for interactivity I don’t know really =)

Not too helpful I know…

   

Avatar
Alejandro Santander, Administrator
Posted: 01 July 2011 07:19 PM   Total Posts: 414   [ # 4 ]

http://www.closier.nl/broomstick/mergetest.html

   

Richard Olsson, Administrator
Posted: 02 July 2011 04:01 PM   Total Posts: 1192   [ # 5 ]

To the original poster, are you using the correct window mode (“direct”) and have you made sure that GPU acceleration is enabled in your Flash Player?

   

Mr Margaret Scratcher, Sr. Member
Posted: 02 July 2011 04:32 PM   Total Posts: 344   [ # 6 ]

I did wonder this as well, and tried to switch it off to test, but yeah, that made it even worse..

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X