• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Loading resources in Android app

Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

My app (which is a simple 2d game written using OpenGL ES 2.0) currently doesn't have a splash screen or menu, when you launch the app, it goes straight into the game.

Now, the thing is, that when I run this on a lower-end phone (a Samsung Galaxy Ace) it starts, but for the first 20 seconds or so, although everything is displayed and you can play it, it's clearly doing something in the background because the game 'stops and starts' - it's very jerky (sometimes everything will stop for a fraction of a second, then run really fast as it 'catches up' - it's extremely annoying).

I'm not doing anything special to load my resources, and there is a pause of about 5 or 6 seconds before it actually runs (black screen -which is where everything is loading and all my sprites are being created etc I assume).

After a little while, everything is smooth as butter.

Would anyone have any idea what may be going on?! Everything must be loaded at that point and all objects created, otherwise the app wouldn't start and be playable....

Any idea's would be appreciated.

Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic