Speed problem with version 2.2

1 view
Skip to first unread message

ConteZero

unread,
Sep 30, 2008, 10:38:48 AM9/30/08
to away3d.dev
Hi, I'm testing the 2.2 version of Away3D and I'm experiencing a lower
framerate compared with 2.1
I've made a simple test swf to show the differences:
This is the 2.1 version:
http://www.contezero.com/test/Away3d_21.swf
This is the 2.2 version:
http://www.contezero.com/test/Away3d_22.swf
I've compiled the files with mxmlc and I've tested with Player 9.0
r124 in Linux

Ian Stokes

unread,
Sep 30, 2008, 10:50:46 AM9/30/08
to away3d.dev
I've seen a speed drop also by a small amount

mogg

unread,
Sep 30, 2008, 11:57:25 AM9/30/08
to away3d.dev
Looks like it is time to focus on the F10 speed enhancements... :)

I really believe the Away3D team is reaching the limits of software
level rendering. I'm really impressed at what Away3D can do without
the use of the GPU. Just think what this team will be able to do with
the F10 enhancements. Full-screen rendering and Real-time shadows will
be far closer to a reality.

Tony

On Sep 30, 7:38 am, ConteZero <o...@contezero.com> wrote:

ConteZero

unread,
Sep 30, 2008, 1:09:12 PM9/30/08
to away3d.dev
With my configuration I've a big speed drop, I don't know if the
problem is the Linux Flash player (I don't use windows) but with the
test file that I've posted I have:

Away3d v2.1 with 5x5 cubes:
45 fps with rotation
50 fps without rotation

Away3d v2.2 with 5x5 cubes:
23 fps with rotation
25 fps without rotation

Away3d v2.1 with 10x10 cubes:
25 fps with rotation
27 fps without rotation

Away3d v2.2 with 10x10 cubes:
15 fps with rotation
18 fps without rotation

Away3d v2.1 with 15x15 cubes:
15 fps with rotation
17 fps without rotation

Away3d v2.2 with 15x15 cubes:
11 fps with rotation
15 fps without rotation

katopz

unread,
Oct 1, 2008, 12:13:44 AM10/1/08
to away3...@googlegroups.com
thx ConteZero for report this, it's many change in core engine from 2.1 -> 2.2
not sure it's about player or not, any clue it's welcome here

thx


2008/10/1 ConteZero <o...@contezero.com>

katopz

unread,
Oct 1, 2008, 6:18:43 AM10/1/08
to away3...@googlegroups.com
Hey ConteZero, can you try test it again with tags version?

http://away3d.googlecode.com/svn/tags/2.2.0/trunk/src

if you are on flash plz try delete aso before compile
if you are on flex plz clean project 1st

do yell me back again, i know it's sound weird cause it's suppose to be same package as main trunk there but i got huge diff fps increase after switch trunk to tags version, also 3-4 time test like crazy here

need someone help me test this, i'm already confuse now

thx ;)

2008/10/1 katopz <kat...@gmail.com>

katopz

unread,
Oct 1, 2008, 7:25:51 AM10/1/08
to away3...@googlegroups.com
okie stupid me, i keep reply myself lol, do forget my last reply, i just found that my fps problem came from my internal collada dev that not related to public folder , that's why tags folder it's faster there :P

2008/10/1 katopz <kat...@gmail.com>

ConteZero

unread,
Oct 1, 2008, 9:07:27 AM10/1/08
to away3d.dev
Here there is a simplified test based on Basic_SceneSetup demo:

2.1 version:
http://www.contezero.com/test/test_21.swf
2.2 version:
http://www.contezero.com/test/test_22.swf
source code:
http://www.contezero.com/test/test.as



On Oct 1, 1:25 pm, katopz <kat...@gmail.com> wrote:
> okie stupid me, i keep reply myself lol, do forget my last reply, i just
> found that my fps problem came from my internal collada dev that not related
> to public folder , that's why tags folder it's faster there :P
>
> 2008/10/1 katopz <kat...@gmail.com>
>
>
>
> > Hey ConteZero, can you try test it again with tags version?
>
> >http://away3d.googlecode.com/svn/tags/2.2.0/trunk/src
>
> > if you are on flash plz try *delete aso* before compile
> > if you are on flex plz *clean project 1st*
>
> > do yell me back again, i know it's sound weird cause it's suppose to be
> > same package as main trunk there but i got huge diff fps *increase *after

tain

unread,
Oct 1, 2008, 10:18:57 AM10/1/08
to away3d.dev
i get first FPS drop on 12 segments, and on 15 its down to
30fps....when rotating away2.1 is faster (4-5 frames), when its static
the away3d 2.2 triangle caching is doing its part and speeding up the
FPS.
i got lousy hardware configuration but i guess that doesnt matter.

ConteZero

unread,
Oct 1, 2008, 11:02:43 AM10/1/08
to away3d.dev
Now a very stupid test, what it does is to call render() function
without objects in the scene (so it has nothing to render).

2.1 version:
http://www.contezero.com/test/test_render_21.swf
2.2 version:
http://www.contezero.com/test/test_render_22.swf
source code:
http://www.contezero.com/test/test_render.as

The test is stupid, but the results are interesting, with Linux Flash
Player I have 43 fps for version 2.1 and 30 fps for version 2.2
So I think that render loop function is the source of the slowdown in
Away3D 2.2

ConteZero

unread,
Oct 1, 2008, 12:44:41 PM10/1/08
to away3d.dev
The slowdown seems to come from session clear code:
_session.clear(this);
in render() function in View3D.as
Actually I don't know how the session code works so if some developer
could look at this..

Rob Bateman

unread,
Oct 1, 2008, 6:10:44 PM10/1/08
to away3...@googlegroups.com
Hey ConteZero


Apologies for the delay in answering - been attending the Flash On The
Beach conference in Brighton this week - with whole different bunch of
people asking questions!

Thank you for all your work on this so far. Unfortunately some of the
recent archiecture changes have had a marginal effect on performance.
Your research should certainly make things easier to spot, so I will
be checking things out just as soom as I can! There is certainly no
absolute reason why things should be slower, most likely it is a minor
issue that will be resolved soon enough.

atb

Rob


--
Rob Bateman
Flash Development & Consultancy

rob.b...@gmail.com
www.infiniteturtles.co.uk
www.away3d.com

Ian Stokes

unread,
Oct 2, 2008, 11:17:16 AM10/2/08
to away3d.dev
what difference is there with _session.clear(this) through the
versions? I tried to move this to different locations and see if that
made a difference even though I have no clue about the code :)

ConteZero

unread,
Oct 4, 2008, 8:45:25 AM10/4/08
to away3d.dev
Commenting the following code in core/render/SpriteRenderSession.as
has resolved my slowdown problem:

//clip the edges of the root container with scrollRect
if (this == view.session) {
_clip = view.clip;
_container.scrollRect = new Rectangle(_clip.minX-1,
_clip.minY-1, _clip.maxX - _clip.minX + 2, _clip.maxY - _clip.minY +
2);
_container.x = _clip.minX - 1;
_container.y = _clip.minY - 1;
Reply all
Reply to author
Forward
0 new messages