The Artima Developer Community
Sponsored Link

Java Buzz Forum
Decoupling GameLogic from Repainting-J2ME

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fred Grott

Posts: 4361
Nickname: shareme
Registered: Jan, 2003

Fred Grott is Lead Developer-CEO of ShareMe Technologies LLC -The Mobile Future
Decoupling GameLogic from Repainting-J2ME Posted: Jul 11, 2003 4:37 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fred Grott.
Original Post: Decoupling GameLogic from Repainting-J2ME
Feed Title: ShareMe Technologies-The Mobile Future
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: A Weblog about Java programming and digital convergence on mobile devices in such areas as P2P and collaborative technology. Old Archive .
Latest Java Buzz Posts
Latest Java Buzz Posts by Fred Grott
Latest Posts From ShareMe Technologies-The Mobile Future

Advertisement
Although this helpfull thread is for J2ME, its also applicable to J2SE games as well if you are working on a game in that area of java. The reason why you want to decouple repainting code from gameLogic code in J2ME is to automatically adjust to particular handsets.

For example, Siemens handsets have a slower FPS rate than Nokia so you want to adjust FPS downward. The way to do this is to decouple the repaint and game logic code from each other. This thread from J2ME.org shows how to accomplish this goal, thanks Marty! It just so happens that I was thinking of how to refactor my gameLogic code to deal with these issues, so it came in at a real good time.

For J2SE game developers you would want to use this code because they you could adjust game FPS for what graphic cards are avaible, graphics drivers avaible, desktop cpu speed, and etc. Plus decoupling gameLogic code from repainting code avoids the issue of repaint not returning until finished.

Read: Decoupling GameLogic from Repainting-J2ME

Topic: Refactoring to Implicit Invocations Previous Topic   Next Topic Topic: Physics Jargon in Software

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use