Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

godot4.3.dev5 headless profile not good #434

Open
yythlj opened this issue Apr 16, 2024 · 3 comments
Open

godot4.3.dev5 headless profile not good #434

yythlj opened this issue Apr 16, 2024 · 3 comments

Comments

@yythlj
Copy link

yythlj commented Apr 16, 2024

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

@Zylann
Copy link
Owner

Zylann commented Apr 16, 2024

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

@yythlj
Copy link
Author

yythlj commented Apr 17, 2024 via email

@Zylann
Copy link
Owner

Zylann commented Apr 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants