AIR Runs slow

SueseSuese Posts: 120Member
I tried porting a game I made for LD48 competition to the OUYA

Shorty & The Big Deal 2600
image

The porting process was really easy, but unfortunately...

AIR is running really stupid-slow. There is also a latency on the game-pad.

Anyone have advice other than to ditch AIR?
TheSuese.com - Elite Developer Backer

Comments

  • Volcanic-PenguinVolcanic-Penguin Posts: 90Member
    Hmm this is concerning. What frame rate is it made for?

    I'm making an Air Android game for my Xperia Go which is running smoothly, and the Xperia Go is a fairly low end device with a Dual-core 1 GHz Cortex-A9 and 512 MB RAM. Though it also has a very low resolution at 320 x 480 pixels which should mean it needs less processing power.

    Either there's something about your game that makes it very demanding, or the OUYA is very bad at running AIR.

    I use FlashDevelop for coding but make graphics and publish in Flash CS5, as I like having a stage to place stuff on instead of doing everything through code, but if you're the kind of developer that likes to do everything through code you might want to check out using Stage3D and Starling which is made to optimize performance.

    http://gamua.com/starling/
  • Volcanic-PenguinVolcanic-Penguin Posts: 90Member
    Oh and does the game scroll? Can you tell if the game lags from having to redraw the entire screen or if it lags even when that is not the case?
  • SueseSuese Posts: 120Member
    30 fps, it doesn't scroll. I turned on GPU flag in the command line and it's still very slow.

    It uses the blitting method for drawing as opposed to stage objects and is relatively optimized. Click here to play Shorty & The Big Deal 2600 for the Browser.
    TheSuese.com - Elite Developer Backer
  • SueseSuese Posts: 120Member
    Stage3D not working either :(
    TheSuese.com - Elite Developer Backer
  • SueseSuese Posts: 120Member
    edited January 2013
    AHA!!
    FlashDevelop caveat discovered
    I went into the Project->AIR App Properties->Initial Window->Non Window Platform->Render Mode->GPU

    I thought the compiler flag -use-gpu=true would work, but apparently it did not. My game runs like a CHARM.

    w00000000tt
    Post edited by Suese on
    TheSuese.com - Elite Developer Backer
  • SueseSuese Posts: 120Member
    Stage3D problem solved
    All you need is Air SDK 3.5
    Download it and extract it to your current flex-sdk folder
    http://www.adobe.com/devnet/air/air-sdk-download.html
    TheSuese.com - Elite Developer Backer
Sign In or Register to comment.