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 speedupBOPFogHandling incompatibility #129

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

makamys
Copy link
Contributor

@makamys makamys commented Sep 26, 2022

When using GasStation 0.3.4, speedupBOPFogHandling produces a very similar crash to #72. This happened because GasStation didn't handle inner mixin classes correctly. (FalsePattern/GasStation#3)

This gave me the idea to refactor the mixin to not use an inner class, and instead move its implementation into a helper class. This fixes the crash, and the crash with BetterFPS as well.

I verified that the mixin still works. EntityRenderer#setupFog takes up 4.7% of CPU time when it's disabled, which goes down to 0.1% when it's enabled.

@mitchej123
Copy link
Contributor

Awesome thanks.

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