I’ve made a web browser game, and my initial testers are reporting that the game runs poorly and lags at 120 fps. What could be causing this, and how can I fix it? The project was created in Godot 4.3. Thanks in advance!
Without knowing what kind of game it is or how you write your code it’s hard to help, but I can make a few educated guesses:
- Try to use the Delta Time when moving things around in your game, so they’re not tied to the FPS.
- If high FPS is not important, limit the FPS for your project in the Project Settings in Godot, and see if that helps.
- Could be that you have a lot of inefficient code inside your Drawing functions if you draw things manually.
Furthermore, you can use Godot’s “Monitor” feature to monitor how much resources your game uses, and pinpoint where the issue might be.
3 Likes