×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    35

    Performance issue

    Hi ,
    I have developed a game using J2ME (MIDP 2.0 , CLDC 1.1)which works fine in N70 and the emulator used is Series 60 2nd Ed. SDK for Symbian OS, FP 3, for MIDP.
    But the game does not run smoothly in 6600. When i initially tried to install the game in 6600 it said invalid version and did not install the game. So i renamed the version from CLDC1.1 to CLDC 1.0 , and it worked, as i mentioned before not smoothly.

    What might be the problem ?
    The game capacity is 350kb so memory is not an issue.

    Thanx in advance.

  2. #2
    Regular Contributor
    Join Date
    Oct 2005
    Posts
    50

    Re: Performance issue

    Hi ziyaaf,

    Are you using any floating point calculations in CLDC 1.1 version of the game which is later omitted while porting to 6600? If so, the game might have lost the accuracy in movements.

    Best Regards,
    Gracy

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    35

    Re: Performance issue

    Hey thanx Gracy, for replying.

    No im not using any float numbers.
    All i did was create an animation using sprite and loop through it.

    And another thing which i noticed was ... the game did not run in 6600 when Random numbers were used. It said "Application Error!". So i had to remove the Random numbers .

  4. #4
    Registered User
    Join Date
    May 2004
    Location
    Mumbai, India
    Posts
    35

    Thumbs up Re: Performance issue

    Quote Originally Posted by ziyaaf
    Hey thanx Gracy, for replying.

    No im not using any float numbers.
    All i did was create an animation using sprite and loop through it.

    And another thing which i noticed was ... the game did not run in 6600 when Random numbers were used. It said "Application Error!". So i had to remove the Random numbers .

    Hi ziyaaf,

    try one thing, use different images instead of animating using sprite.
    there are lot of other optomising techniques available.....
    As far as random numbers are concerned its possible to use random numbers in midp 1.0 or 2.0 it might be the problem with your code.


    rgds,
    Anil.

  5. #5
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Performance issue

    In fact Random is a class in CLDC. In CLDC 1.0 there are only 4 methods available (7 in CLDC 1.1)

    protected int next(int bits)
    Generates the next pseudorandom number.

    int nextInt()
    Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

    long nextLong()
    Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

    void setSeed(long seed)
    Sets the seed of this random number generator using a single long seed.

    So if you use any other methods from Random class on 6600, you definitely will get a application error, as the phone supports only CLDC 1.0

    Hartti

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: Performance issue

    Hi ziyaaf! Welcome to Nokia Discussion Boards!!

    I do remember there was some issues while working with 6600, one of the issues that haunted me was the Garbage collection. Calling the System.gc() method results in extreme slowness and jamming. In Monty 1.0 VM, garbage collection is different and every time System.gc is called, the entire memory is really cleared. This is an extremely slow process!

    Also there are other similar issues. I suggest to go through the "Known issues in the Nokia 6600 MIDP 2.0 implementation" available in Forum Nokia Technical library
    http://www.forum.nokia.com/document/...al_library.htm

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

  7. #7
    Registered User
    Join Date
    Apr 2007
    Posts
    35

    Re: Performance issue

    Thank you all for the information ,

    I have a few more questions:
    1,What is the RAM size of 6600 ?
    And how much memory should i use to run a game at normal speed?
    2.What software do they use to create sprites in games like metal bluster 2.
    'cause what i did was create a 3D model using Poser and convert it to PNG.

    Thank you all once again !

  8. #8
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Performance issue

    Here are the 6600 device specs, including some memory information
    http://www.forum.nokia.com/devices/6600

    Hartti

  9. #9
    Registered User
    Join Date
    Apr 2007
    Posts
    35

    Re: Performance issue

    Now the Random number problem is resolved. But still the game does not run at normal speed. And strangley I got the message "Memory Full !".

    It's strange because I checked the WTK memeory monitor and it shows that the game consumes about 300kb of memory. And memory goes upto 410kb whenever "FIRE" button is pressed (This is only for 2 seconds and afterwards the memory goes back to 300kb ).
    According to NOKIA site heap size of 6600 is 3MB and from another forum someone said it is 700kb . Whatever it is my game is not suppose to show "Memory full !".
    (Note: No other application was open when I was running the game)

    Can anyone tell me whats going on here.

    Thanx!

    Ziyaaf

Similar Threads

  1. RTSP video streaming issue on 6280
    By olivier_irac in forum General Development Questions
    Replies: 0
    Last Post: 2006-12-04, 15:11
  2. Issue with APp deployment on 6265i
    By romar_mro in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-09-10, 07:15
  3. pim and performance issue???
    By dakoz in forum Mobile Java General
    Replies: 0
    Last Post: 2006-05-03, 14:42
  4. Performance issue
    By calleandersson in forum Mobile Java General
    Replies: 1
    Last Post: 2005-07-09, 13:32
  5. Socket performance issue in 7650
    By prsens in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-06-23, 10:37

Posting Permissions

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