Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Optimize world generation #5

Open
Shadowblitz16 opened this issue Oct 11, 2023 · 1 comment
Open

Optimize world generation #5

Shadowblitz16 opened this issue Oct 11, 2023 · 1 comment

Comments

@Shadowblitz16
Copy link

It would be nice if world generation could be optimized.
I used to have a pretty powerful computer for its time when starbound was released,
however it tended to lag pretty bad.

I haven't played this for a while so i'm unsure if it's still a problem.
If that's the case this issue can be closed.

@jkotrc
Copy link

jkotrc commented Nov 9, 2023

A couple of profiler runs suggest that during chunk loading, WorldStorage asks EntityFactory and ServerTile respectively for JSON data of the entity inhabiting the chunk. Some work seems to be done redundantly and the read/write isn't efficient. It doesn't look like core module's database and math functions inline very well, so it may be worthwhile to replace math with something like linalg.h and database functionality with something production grade like mongo. Also look into options for making JSON data more compact / loading mod .paks into a better representation on startup

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

No branches or pull requests

2 participants