Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:16:34+00:00 2026-06-15T12:16:34+00:00

I am currently developing a game for education purposes. The game is a small

  • 0

I am currently developing a game for education purposes.

The game is a small chat where each player has a figure. This figure has its position written in a MySQL database, and updates every time a players moves his figure.

Currently, every 60 frames, the game updates all the players positions and changes them in the gameclient. The performance of the database is not my only concern, as this causes the game framerate to drop to around 30-50 fps.

Obviously, this generates 1 query for position updates a second (Game runs at 60fps), per player. Thinking a little larger than me and a few friends as users, i could imagine this may be a problem.

Would a standard rented webserver be able to handle this? How could i improve it? (It can’t update the positions less than once a second)

I hope you have some ideas 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:16:35+00:00Added an answer on June 15, 2026 at 12:16 pm

    This sort of data is not really saved to a database after every single change, instead it’s kept in some kind of in-memory context so that it’s much faster to access. What you store in a database is things that change less frequently, like on the order of once per minute.

    What you might do is snapshot the current in-memory context to the database on a regular schedule. That is to say every minute or so you would “persist” the game state so that if the engine crashed it could restore from that point. If you create the proper architecture, this would be no more difficult than calling a method periodically.

    Certain things may be persisted immediately to avoid people exploiting this lag between an action occurring and the record of that action being permanent. For example, any transactions with in-game currency would be recorded immediately and the in-memory cache would not be trusted for these.

    For low numbers of players, like under a hundred, you should have no problem with using a commodity VPS. To host more players you would have to be very careful to be efficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a webtool for a game called 'Eve Online'. This game has
I'm currently developing a small OpenGL game for the Android platform and I wonder
I'm currently developing an Android game which saves data into a SQLite database. This
I'm currently developing an iPhone game where the player needs to tilt the device
a former coworker (artist) and myself (programmer) are currently developing a small game together
I'm currently developing a small puzzler game, where the point is to shoot a
I'm currently developing a small indie game for the Android framework, however in order
I am currently developing a card game for the iphone using cocos2d. I am
I'm currently developing a doodle-jump style game in Cocos2d for iPhone and have a
I'm currently developing an OpenGL ES game for the iPhone and iPod touch. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.