matrix-org / matrix-org/thirdroom
FPS is not actually the games performance
- Dominant language
- C
- Stars
- 647
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
Research direction
No file, test, or entry point is named. Reproduce the issue by enabling stats with Ctrl+Shift+S and walking around, then inspect the FPS calculation and rendering loop described in the report. Done means the displayed FPS reflects actual game updates rather than repeated frames and exposes the reported stuttering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- three.js, typescript
- Domain
- game-dev, performance, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100