×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    24

    Slow Loading ...

    Hello ...

    I've loaded a game on my Nokia 3650 ...

    The .JAR file size is 16 KB only ... But when I run the game, it takes 4 to 6 seconds to start ... which is a long time !!!

    What are the possible reasons of that slow loading ??? How can I solve the problem ???

    Following are the performance logs captured from SUN WTK when running the game on a PC :


    Execution completed successfully

    456250 bytecodes executed

    28 thread switches

    434 classes in the system (including system classes)

    4432 dynamic objects allocated (215812 bytes)

    7 garbage collections (57040 bytes collected)

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    24
    It's might be important to say that the game loads 32 images of PNG format as it starts ...

    The Image size is 380 bytes ...

    Is that relative to the slowness of loading ???

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    3
    Sounds like loading these images may very well be the problem. Do you notice this in the emulator as well? You could profile it by calling System.currentTimeMillis() before and after loading the images and printing out the time difference.

    If this is indeed the problem, you may want to spawn a separate thread for loading the images, so that the application's main screen shows up right away and the images are loaded in the background.

    -sfgeek

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    24
    Very Great Idea ...

    I'll work to make it on a separate thread ...

    Thanks in advance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×