• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Storing online player map coordinates in a MMOG

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hie I'm new here!

I'm making an online game where player walks around the map doing stuff. Currently each step he makes I will invoke a jsp page to a hidden iframe to update the database his new map coordinates.

But I think this will put a very heavy load on the DB server if many players are logged in at the same time. I have thought of another way, but before I start coding, I wonder if things will be more efficient if I save his location in an application scope Hashtable instead. His latest location I will only update to DB when he logs out.

Or are there better ways ?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is probably more about game design than JSP, so I've moved this to the gaming forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic