Jump to content
  • Advertisement
  • entries
    1212
  • comments
    1738
  • views
    1144376

Good day and welcome to day five

Sign in to follow this  
johnhattan

80 views

Day five of The J2ME Project That's Name Cannot Be Spoken (no, really, I signed the NDA yesterday). It's gotta run on a Nokia S30-series phone, which has a mind-numbing 32k of available heap. The code is based on a game that's already completed, so I've at least got the advantage of learning from other people's mistakes. One of the mistakes was. . .

Do not write for a more capable phone and then expect that code to work on a less capable phone.

They did their initial coding for the S60-series phones which have a luxurious 1 megabyte of heap available. Once they got to the S30 phones, however, they found that programs that do a lotta dynamic allocation just don't work on smaller platforms. It neither has the space nor the processing horsepower to maintain a lot of objects, so they had to flatten the app from several dozen game objects down to about five big ones.

Since I'm starting on the small platform, the later up-port should hopefully be much easier. Had a funny conversation with one of the technical managers on Tuesday:

Him: You can't have many objects on these little phones and as little dynamic allocation as possible.

Me: What's the minimum number of objects necessary anyway?

Him: Well, let's see. You need three static objects at least. One for the MIDlet, one for the display, and one to handle the events for the game objects.

Me: Okay, I'll do the game with three static objects. I'll just put all the game code in the event dispatching object.

So now that I've said it, it's gotta be done. We'll see how it pans out.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!