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

Game crash / too high memory usage on start if too many maps #21407

Closed
cclecle opened this issue Apr 24, 2024 · 1 comment
Closed

Game crash / too high memory usage on start if too many maps #21407

cclecle opened this issue Apr 24, 2024 · 1 comment

Comments

@cclecle
Copy link

cclecle commented Apr 24, 2024

Motivation

If the game is loaded with a lot of custom maps (100+ in my tests), then the memory usage explode to 2, 3 GB or more and might crash.
The next release will introduce server map list accessible to client, so map list will probably get bigger, especially on dedicated server

Proposed solution

Do not let map Packages openned in memory after app start.
Open the package for discovery/checking/lint on start, then close the package, and finally reoppenn the package only when needed.

Side effects

Maybe a very small delay on map start because the package will have to be reopenned, should be unsignificant.

Alternatives

Accept having 3, 4 or more GB of ram per instance to allows game to run .

@PunkPun
Copy link
Member

PunkPun commented Apr 30, 2024

closed by #21408

@PunkPun PunkPun closed this as completed Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants