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

Graph-related fixes #922

Draft
wants to merge 4 commits into
base: dev/1.21.1
Choose a base branch
from
Draft

Graph-related fixes #922

wants to merge 4 commits into from

Conversation

Rover656
Copy link
Member

@Rover656 Rover656 commented Dec 13, 2024

Description

Fixes:

The idle TPS hit was due to our network syncing, while these changes mitigate the impact to a reasonable point, our networking solution still needs some love. I'll begin work on something that will fix these problems.

TODO

Breaking Changes

No breaking changes, pre-existing cap banks and solar panels will keep their stored energy.

Checklist

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • I have made corresponding changes to the documentation.
  • My changes are ready for review from a contributor.

To be finalised, changes still requested on the graphlib modifications.
Still need to re-add input/output monitoring.

Also still suffering from significant performance deficit due to network data sync.
It's time for us to look at networking again, but more seriously.
We were syncing the positions of graph members over the network which was expensive to compute whether it has changed or not.
Because the graph was already local, I've shaved off some of the unnecessary graph logic on the client and use this locally instead.

This may not be the permanent solution, but is good enough to remove the immediate problem.
@Rover656 Rover656 added Type-Bug There is a problem. Area-Backend Backend work not usually visible to players. MC-1.21.1 labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Backend Backend work not usually visible to players. MC-1.21.1 Type-Bug There is a problem.
Projects
None yet
1 participant