-
Notifications
You must be signed in to change notification settings - Fork 21
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
Optimization solve the timings problem in TechGenerator and TechMutation #36
Comments
I'll take a look |
@JustAHuman-xD Could you check this PR? User who reported asked to include a limiter of 10 machines per chuck, I included this customization option, but with a default value of 100 |
looks like |
this makes sense |
Can you send the entire timings report |
I feel like this isn't the problem as every AContainer machine does this and they don't appear on timings this bad. |
The main lag is coming from cloning the slimefun item stack |
Supreme/src/main/java/com/github/relativobr/supreme/machine/tech/TechMutation.java Line 258 in d1ff114
Is there any reason that you are calling .clone() for both of these here? I don't think its necessary and that is what is lagging it. I would try removing the clone call and doing some testing. |
Looks like you also do this in some other blocks, I would recommend removing it from them aswell. |
ok, i will adjust |
User Report: Identified a high consumption of server resources by some addon machines, requested an optimization so that the machines can use less resources.
Info: TechGenerator 3.29% and TechMutation 3.09%
Images:
The text was updated successfully, but these errors were encountered: