How to pause the thread while loading the texture

  try{ getFittingBoard(new Topic()); }
catch (Exception e) { postHere() };

How to pause the thread while loading the texture

Postby gforcer18 » Wed Feb 08, 2012 6:57 pm

Hi

To wait until the texture is loaded, i using this:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. While (!mTexture.isTextureLoadedToHardware)
  2. {
  3.  
  4. }
  5.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


But after couple of seconds, emulator just stops responding. It happens not always, but often

On device i don't have this problem :)

Is there other method to pause the thread until texture is loading ?

sorry for bad english ;)
gforcer18
 
Posts: 9
Joined: Wed Aug 10, 2011 6:31 am
Location: Russia, Izhevsk



Return to OFF-Topic

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests