Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Storing online player map coordinates in a MMOG  RSS feed

 
Alan Yap
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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 ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably more about game design than JSP, so I've moved this to the gaming forum.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!