title: Displaying FPS in LibGDX game
body: <p>So, im making a game, and i need to display fps in it.
  <a href="https://i.stack.imgur.com/3RRMS.png" rel="nofollow noreferrer">It is how it looks like</a></p>
  
  <p>You can think that it is okay, but if i try to fly away, text stays there. It is not moving.</p>
  
  <pre><code>    public void render(SpriteBatch batch) {
          batch.begin();
          Draw.draw();
          MainScreen.player.draw();
          TextManager.displayMessage("FPS: "+ Gdx.graphics.getFramesPerSecond(), true, false, false, false);
          PlayerControl.update();
          CamControl.update();
          UI.drawCurrentBlock();
          batch.end();
      }
  </code></pre>
  
  <p>This is a code that displays fps.</p>
  
  <p>I need it moving with my screen.</p>
  
  <p>UPD: idea with making static camera didn't work. It just literally doesn't moves.
  If i try to sync text with camera coordinates, it moves, but it is 'shaking'.</p>
  
  <p>Are there another methods to display it literally in screen, or make it's sync with camera normal?</p>