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

Fix restart bottlenecks #1428

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

RedRafe
Copy link
Contributor

@RedRafe RedRafe commented Aug 18, 2024

Changes

  • 1. local this = Public.get moved inside events instead of local in file (otherwise it was nil after on_load)
  • 2. added a Queue system for initial map reveal
  • 3. moved some functions from to the map function itself

Altho for 3. more stuff can be moved to map function, the main in-game UPS issue is from biters pathfinding so I'll maybe come back and refactor this part when I'll add more scenery (rocks, rivers, ...) to terrain gen.
I've tested both SP and MP on our server and can confirm .2 (+ another 10s from previous surface clear) solved all the restart issues: now the server does not even hiccup a second when restarting :)

Copy link
Collaborator

@grilledham grilledham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@grilledham grilledham merged commit eefc8da into Refactorio:develop Aug 18, 2024
1 check passed
@RedRafe RedRafe deleted the updates/frontier-restart branch August 19, 2024 09:07
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

Successfully merging this pull request may close these issues.

2 participants