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

More optimization & bug fixes #55

Merged
merged 17 commits into from
Sep 20, 2024
Merged

More optimization & bug fixes #55

merged 17 commits into from
Sep 20, 2024

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Sep 16, 2024

Most importantly this fixes only newly discovered veins being saved, it worked perfectly fine when migrating from the old cache but it would all be overwritten as soon as a new vein was discovered. (oops)

Some of the chunk analysis changes I made in #54 were missing far too many veins, it has been changed to something closer to what it was previously with some added checks for whether the primary meta matches & if ore can spawn in a given dimension (if it exists)
This is slightly slower but has a significantly lower miss rate, in a sample of ~11400 ore chunks only 178 were missed/couldn't be identified during the first pass and the vast majority of them were correctly identified in the second pass.

Okay I also got a larger sample size for shits and giggles:
43674 total ore veins of which
1968 had to be identified in second pass
351 failed to be identified (most are probably too high/low y level or just didn't spawn)
This means that 95.5% were correctly identified in the first pass and only 0.8% failed to be identified

@Lyfts Lyfts requested a review from a team September 16, 2024 15:43
Copy link

Warning: 2 uncommitted changes
#56

@Ethryan
Copy link

Ethryan commented Sep 20, 2024

Do a new review request when this is ready and I will look through it @Lyfts

@Ethryan Ethryan removed the request for review from a team September 20, 2024 14:21
@Lyfts
Copy link
Member Author

Lyfts commented Sep 20, 2024

It's been ready

@Lyfts Lyfts requested review from Ethryan and a team September 20, 2024 14:24
Copy link

@Ethryan Ethryan left a comment

Choose a reason for hiding this comment

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

LGTM

@Dream-Master Dream-Master merged commit 0c3ace2 into master Sep 20, 2024
2 checks passed
@Dream-Master Dream-Master deleted the fixes branch September 20, 2024 14:31
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.

3 participants