Background scrolling performance

Software: Away3D 4.x

Radagast, Newbie
Posted: 21 February 2013 05:18 PM   Total Posts: 28

Hi all!
We are working at convertion of MMO game Taern.com to Stage3D using awsome Away3D lib:). We alredy imported AWD model from 3DsMax with some animation and Map loaded on the screen. (Build with Planes 256/256)
To move Character and background we use TweenLite. The 256x256 Planes with textures are placed in ObjectContainer3D so we can move entire map and all assets on it with single tween. Unfortunately the map is not moving smoothly. U can see that here: http://www.test.taern.com/mapTest/.

I made some performance tests but i cant find any clues how to get better result.  Alredy tried with lighter textures. AwayStats shows up - 46,5M RAM and ~5340 POLY. I think all should go smooth :/
Some more technical details:
50FPS;
LOW stage quality;
antiAlias = 2;

Any help would be appreciated:)

Best Regards
Radagast

   

chocobo_green, Jr. Member
Posted: 23 February 2013 09:24 AM   Total Posts: 38   [ # 1 ]

I’m not helping… Just to report it runs at 15fps on my e-450 notebook. I wonder how much faster it will be without the person?

   

drygu, Newbie
Posted: 23 February 2013 12:08 PM   Total Posts: 7   [ # 2 ]

Thank you for info.

There is almost no difference if we throw out the person model. From our tests it looks like it’s really difficult to achievie smooth scrolling in high resolution. Everything is ok if stage resolution is around 1024x768. For higher you need really powerfull GPU to run everything without glitches.

We’ve prepared test without any lights and models, just moving background:
http://test.taern.com/mapTest/indexTest.html

Doeas anyone found a better solution for such simple thing? We really need our game to work in fullscreen mode. And for now we don’t see much better performance compared to non-Stage3d moving bitmapData.

   

chocobo_green, Jr. Member
Posted: 23 February 2013 01:00 PM   Total Posts: 38   [ # 3 ]

Try Atf instead of Jpg. It decodes faster at least.

   

drygu, Newbie
Posted: 23 February 2013 03:05 PM   Total Posts: 7   [ # 4 ]

Thank you for an advice.

I’ve prepared some tests:
Away3D ATF (4.1): http://test.taern.com/mapTest/awayATF.html
Away3D JPG (4.0): http://test.taern.com/mapTest/awayJPG.html
Starling: http://test.taern.com/mapTest/starling/html/
Bitmap draw (no GPU acc): http://test.taern.com/mapTest/bitmap.html
Movieclip (no GPU acc): http://test.taern.com/mapTest/movieclip.html


It looks like using ATF texture works better then JPG. But still not perfect. For my configuration (I7-3720QM + Intel HD 4000) there is no big difference between Away3D and using bitmap draw (http://plasticsturgeon.com/2010/11/super-fast-scrolling-of-huge-bitmaps/). I’ll try to test it on some low-end laptop.

Ps. Anyone know why stats shows n/a in 4.1 version ?

   

chocobo_green, Jr. Member
Posted: 23 February 2013 04:20 PM   Total Posts: 38   [ # 5 ]

I embarrassingly see results like this on my machine:

perfect>jpg>movieclip=bitmap>atf

   

drygu, Newbie
Posted: 23 February 2013 07:00 PM   Total Posts: 7   [ # 6 ]

Hmm, it’s strange that atf works so badly for you. Maybe it was running in software mode?

I’ve updated post: added Starling version. It’s having 20% higher GPU load but looks a little bit smoother for me compared to away (both wroking at 60fps). Strange. Does anyone have some more tips we could try to get better results?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X