away3d / away3d-core-openfl

Away3D engine for OpenFL
165 stars 41 forks source link

Low performance on c++ target #16

Open posxposy opened 10 years ago

posxposy commented 10 years ago

Hi there! I got a very low performance on windows target.

Intermediate_PerelithKnightMD2 example works with 40-50 fps on flash and 10-15 fps with windows target. Why is it so slow? Because openfl openglview has a low performance?

Sorry for my English, please.

Greg209 commented 10 years ago

Hi,

At the moment, I get 25-30fps in Flash and 20-25 on native (a Mac) so there are performance issues which I've not yet got to the bottom of. Performance does certainly need investigating and is on the list TODO.

One thing you can perhaps try is to do a non-debug build e.g. lime test windows

That'll strip out the debugging code which does impede performance - but I suspect it won't get faster than the Flash atm :(

posxposy commented 10 years ago

I think, that trouble with openfl and openglview. With openglview I draw 1600 boxes stable with 60 fps. And 10000 boxes with 10 fps. And this is a very simple scene: just a texture on the every box and nothing else. So it's a very slow as for low level api:(

posxposy commented 10 years ago

You can test my simple gl scene too, if interesting: https://www.dropbox.com/s/ubuki7uwn0fzjcx/gl_demo.rar?dl=1

Greg209 commented 10 years ago

Yes, I get the performance slow down as the number of boxes increases. Any chance you could post the sources somewhere rather than me re-create the example - would save me a bit of time. Thanks