matrix-org / thirdroom

Open, decentralised, immersive worlds built on Matrix
https://thirdroom.io
Apache License 2.0
604 stars 65 forks source link

FPS is not actually the games performance #365

Open davidak opened 2 years ago

davidak commented 2 years ago

Describe the bug

With Strg + Shift + S you can enable the stats including FPS.

I get 60 FPS, but the game is stuttering and it feels more like 10 or less.

To Reproduce Steps to reproduce the behavior:

  1. Show FPS
  2. Walk around

Expected behavior The FPS should reflect the games performance, like in any other game.

Screenshots https://youtu.be/CLsVJ0KcR0o?t=33

Desktop (please complete the following information): OS: NixOS Linux 22.05.3201.bcc68429a50 Browser: Microsoft Edge 100.0.1185.44

Additional context It seems the stats always show 60 FPS, because the architecture is that it always draw the frames even when the game has not calculated new information, so it draws the same frage again.

vintprox commented 2 years ago

I recently looked into Stats panel and it was showing wild fluctuations from 20 to 190 FPS. No idea what it's calculating.