GPU or CPU Render for Mobile Air Games

10 posts (showing 1-10)
Qky Games

Market Level 7Community Level 2
89 posts

Hi,

I'm starting with a simple project in air and I'm a little confused.
What method of rendering I need select? Direct, CPU, GPU or AUTO

sorry for my english.

Regards.

Maxi.

posted 2015-10-05T18:05:15-07:00
DelaniStudio

Market Level 2Community Level 5
370 posts

Depending what are you using, if its starling its gpu,if its air its direct

posted 2015-10-05T18:22:18-07:00
Qky Games

Market Level 7Community Level 2
89 posts

I'm using air and I have a very very slow frame rate from direct mode, and a perfect framerate from gpu mode.

I put my vector in bitmaps and I am using cacheAsBitmap and cacheAsBitmapMatrix.

posted 2015-10-05T18:37:38-07:00
MunsieGames

Market Level 8Community Level 12
3263 posts

No Stage3D (Starling, etc) try GPU mode.

Yes to Stage3D (Starling, etc) try DIRECT mode.

posted 2015-10-05T23:01:12-07:00
Qky Games

Market Level 7Community Level 2
89 posts

I'm using only flash cs6 and air, so try GPU mode, true?

posted 2015-10-05T23:08:20-07:00 | edited 2015-10-05T23:08:33-07:00
MunsieGames

Market Level 8Community Level 12
3263 posts

I use FlashDevelop so I can't help you with CS6, but if you're not using Stage3d the only option is GPU mode if you want hardware support for rendering. But scaling down/up (in GPU mode) the stage will get a performance hit on some devices, so test on as many as possible before release. Also, research optimizing GPU mode for air mobile to make sure you're doing everything possible.

posted 2015-10-05T23:23:29-07:00
Qky Games

Market Level 7Community Level 2
89 posts

Thank you very much for your help.
I'm scaling the vector and then drawing into a bitmap, work perfect in my samsung galaxy s3 (using gpu), and work very very slow using direct or auto.

I will test my application on different phones to be sure.

sorry for my english.

posted 2015-10-06T00:00:15-07:00 | edited 2015-10-06T00:01:29-07:00
shajby

Market Level 7Community Level 8
1431 posts

It also depends on what kind of game you are creating. If there are a loooot of moving objects etc go for GPU, if it's some simple game you can go with CPU. I have used only CPU in all my games (even more dynamic games work great and smoothly now with CPU and latest AIR). And with GPU you will not be able to use any filters etc. 

posted 2015-10-06T06:12:59-07:00 | edited 2015-10-06T06:14:33-07:00
bluebox

Market Level 6Community Level 3
334 posts

Im always go with Gpu. We are too small studios/devs to envolve two different pipelines in my opinion.

posted 2015-10-06T08:46:43-07:00
Qky Games

Market Level 7Community Level 2
89 posts

I have some objects with movements, some are fast.
Based on your comments I will use GPU.

Thank you very much to all.

posted 2015-10-06T13:38:30-07:00