Poor performance in a very simple game

Godot Version

4.4.1 godot android editor (exported the game using export template)

Question

I’m having a very poor performance, my game runs at 12fps even though there isn’t anything heavy just 30 csg boxes

But performance improves when I use compatibility backend

one more questions

The fps in landscape mode is higher(60fps)
But in portrait mode it’s only 30 fps

CSG shapes can be expensive, especially if moving and/or combined. What does your scene tree look like?

For a simple game on a low-end device it sounds like compatibility mode is your best target

landscape mode may be rendering more skybox and less CSG objects

1 Like

Just to add that I believe CSG nodes are meant just for prototyping. Not production. There are plenty of warnings too in the docs that doing certain things, like how they are created in your tree, can impact a prototypes performance.

I think you have to convert them to Meshes.

Converting to MeshInstance3D
Since Godot 4.4, you can convert a CSG node and its children to a MeshInstance3D node.

PS (Edit) Reading further about this I found this comment:

In summary, while CSG nodes excel at prototyping, they are versatile enough to be used for final game elements in specific scenarios where their limitations are acceptable.

So not “just” for prototyping, if you can live with the potential performance impacts.