performance question

Software: Away3D 4.x

Avatar
Cheng Liao, Administrator
Posted: 07 August 2011 03:06 PM   Total Posts: 116

I create only 900 Cubes in scene,and add to the scene of View3D.Every frame I change the position of all cubes,then the cpu load is 100%.
Even if I don’t call view.render() in every frame,the cpu load is very very high.Who know why?

   

Richard Olsson, Administrator
Posted: 07 August 2011 05:05 PM   Total Posts: 1192   [ # 1 ]

900 cubes, while not a lot of geometry, mean a lot of matrix transformations and separate draw calls. Any chance you can merge some of them to improve performance? If they don’t require individual movement or materials, then merging is probably the best option.

What are you trying to create?

   

Avatar
theMightyAtom, Sr. Member
Posted: 07 August 2011 07:19 PM   Total Posts: 669   [ # 2 ]

For an in depth explanation try reading this article:
http://www.derschmale.com/2011/07/25/building-efficient-content-in-away3d-4-0-sharing-materials-geometries/

   

Avatar
Cheng Liao, Administrator
Posted: 08 August 2011 12:05 AM   Total Posts: 116   [ # 3 ]

I use a particle system lib to control the cubes’s moving.It seems impossible to merge the movemoent.

   

Avatar
Alexander Seifert, Moderator
Posted: 08 August 2011 09:19 AM   Total Posts: 129   [ # 4 ]

I have a question about merging meshes. I haven’t looked into it yet, but Richard’s answer leads me to conclude that I can not assign individual materials to sub-meshes.

If I had a big model, split up into several meshes, each of them owning its own material with different texture, some parts rotating (being transformed), some not, would it not be possible to merge it to keep object count low and sorting times fast?

Thanks!
Alex

 Signature 
signature_image

http://www.deltastrike.org

   

John Brookes, Moderator
Posted: 08 August 2011 10:36 AM   Total Posts: 732   [ # 5 ]

You can assign different materials to different submeshes.
If it don’t move, merge it.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X