away3d / away3d-core-openfl

Away3D engine for OpenFL
165 stars 41 forks source link

VertexBuffer IndexBuffer creation methods move #36

Closed sleep2death closed 9 years ago

sleep2death commented 9 years ago

VertexBuffer IndexBuffer creation methods move, and some bug fixes

Greg209 commented 9 years ago

Thanks for the PR. I'm curious to understand the reasons behind moving the vertex/index buffer create/dispose into the Stage3DProxy - can you explain the benefits of this a little more please. Do you have a use case for it?

Certainly the bug fixes are good to go though.

Ta

Greg

sleep2death commented 9 years ago

Hey, Greg. Our team are developing an 3d aprg game based on away3D from the "Broomstick" 3 years ago. When players are casting too much skill effects(like particles etc), the FlashPlayer would crash because of the number of the vertex buffers are reached "4096" limit, so It's very important to track the "vb/ib" count all the time when we're debugging with the "AwayStats". You can test the "Intermediate_Lines" example, the program will create unlimited vertex buffer and never dispose them, it will cause the crash or slow finally.

And our game is here :http://sy.xd.com or you can just see the video here:http://v.youku.com/v_show/id_XNzk5MzAxNjAw.html