Zylann/godot_heightmap_plugin

godot4.3.dev5 headless profile not good

yythlj opened this issue · 3 comments

In my Godot project, I separated the server code and client code to implement a PVP room game. However, after testing, in scenes with similar objects, the FPS of the server differs greatly between using an hterrain map scene and using a regular glb object scene imported.

Both were tested under the headless display server mode (for the server, rendering is unnecessary, the purpose is to improve computational performance).

When there was only one room, the difference between the two was negligible, the server could reach 75FPS.
When the number of rooms reached 50 (4 people), the FPS of hterrain dropped to between 4-6, while the regular scene could maintain 9-12FPS.

Is there a way to disable unnecessary rendering calculations in headless mode?(not create any hterrain detail layer)
I only want it to effect collide on th server app side.visible is not important

image

other:
image

Did you try hiding the node?
You could also try calling terrain.set_process(false) after spawning it.

Hiding the node and/or calling terrain.set_process(false) on the server might help