title: Game Multiplayer
body: <p>I'm trying to create a multiplayer game where, </p>
  
  <ol>
  <li>For every 2 players, the server will create 1 room (my game is PvP, one vs one)</li>
  <li>Each room handle the game logic</li>
  <li>I will use <code>Java.Util.Timer</code> as my game loop</li>
  <li>Server FPS = 5</li>
  <li>Each room will handle player movement and little physics</li>
  </ol>
  
  <p><strong>On to the actual question:</strong> </p>
  
  <p>What kind of game loop should I use based on the points below? What are the pros or cons of each type of game loop below.</p>
  
  <ol>
  <li>Each room will have their own game loop ( timer )</li>
  <li>All rooms handled in a single game loop ( timer )</li>
  <li>All room handled in a single game loop, but when the total room count = 50, the server will create another new game loop.</li>
  </ol>
  
  <p><strong>EDIT</strong></p>
  
  <p>What I tried so far:</p>
  
  <p>I used the game loop in point 1, But some rooms don't have a chance to update their game loop. I'm confused about whether I need to change my game loop or if I need to change my code in each loop or if the issues is because <code>Java.Util.Timer</code>. </p>