Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey David! May I ask if you have any general tips for optimizing Godot games to web? I’m a newbie to this engine and am losing my mind over making my game run above 60 fps (my laptop runs at 120)

I know optimization is a process that varies a lot from game to game, but apart from the help I occasionally get on Reddit I’m kinda lost

Thanks for reading! Tiny Towers’ a great game btw

Biggest thing for us was converting all GPU particles to CPU.  You can select a GPU particle node, then in the top middle of Godot click on GPUParticles2D and click "Convert to CPUParticles2D".  But duplicate the GPU particle first, and have a global variable called "web_build: bool = true".  Then in all scenes you have to put "if web_build == true, use CPU particle".  There were some other things we did like object pooling but that was the biggest thing

Thanks!! I’ll try doing this