-
Notifications
You must be signed in to change notification settings - Fork 310
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
Apply correct EU modifier for calculating parallels in the Volcanus. #3754
Draft
Vlamonster
wants to merge
28
commits into
GTNewHorizons:master
Choose a base branch
from
Vlamonster:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,064
−948
Draft
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
86611ed
Apply correct EU modifier for calculating parallels in the Volcanus.
21aa120
Remove star imports.
9647b27
Merge branch 'master' into master
Dream-Master 7984c6a
Merge branch 'master' into master
Dream-Master eb7cc52
Merge branch 'master' into master
Dream-Master d13a3c3
Merge branch 'master' into master
Dream-Master 3d0bd19
Merge branch 'master' into master
Dream-Master d830d40
Merge branch 'master' into master
Dream-Master 049cc3e
Merge branch 'master' into master
Dream-Master a257506
Merge branch 'master' into master
Dream-Master b509398
Merge branch 'master' into master
Dream-Master 166a060
Merge branch 'master' into master
Dream-Master 9af0df7
Merge branch 'master' into master
Dream-Master 1563b4f
Merge branch 'master' into master
Dream-Master 08a6654
Merge branch 'master' into master
Dream-Master 82baa9f
Merge branch 'master' into master
Dream-Master 540aa49
Merge branch 'master' into master
Dream-Master 0837e41
Merge branch 'master' into master
serenibyss 72b3884
Merge branch 'master' into master
Dream-Master b3875ed
Merge branch 'master' into master
Dream-Master bfed2a6
Merge branch 'master' into master
Dream-Master cda334c
Merge branch 'master' into master
Dream-Master 612125f
Merge branch 'master' into master
Dream-Master 980b664
Merge branch 'master' into master
Dream-Master 671a131
Start rework of `ProcessingLogic`
392c2a8
Start rework of `ProcessingLogic`
40cc188
Small post-merge fixes
0cc90da
More work
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is now applying the heat EU/t discount twice (before and after parallel). Currently it seems like every machine that does a heat EU/t discount does this discount after parallel. This isn't necessarily a "bug," but a decision we need to make whether this discount should be applied before or after. If we decide to change it to before though, it should be changed deeper down in processinglogic rather than in a machine implementation like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This behavior exists in all other machines afaik, and we only noticed a difference in the Volcanus because we use a spreadsheet to calculate overclocks for all machines up to UMV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the behavior of other machines with heat discounts, MEBF, EBF, Vacuum Furnace, Gorge EBF modules all use similar heat discount mechanics but do not double apply like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by double apply? It doesn't provide a double discount if that's what you're referring to. It just makes it so that it uses all available energy for parallels, i.e. if it can do another parallel then it will.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heat discount is applied during overclock calculation, here
GT5-Unofficial/src/main/java/gregtech/api/util/OverclockCalculator.java
Line 413 in ab402ce
As said in the Java docs of
OverclockCalculator#setHeatDiscount
, "Sets if we should add a heat discount at the end of calculating an overclock, just like the EBF." Volcanus does this discount after parallels during overclock, like EBF, MEBF, etc. so by adding this discount here you are doing this heat discount twice, once before parallel and once after.Furthermore, if this change is to be accepted, the heat discount should be applied before parallel internally, instead of needing to do a hack like this PR. Though this needs discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Vlamonster After some discussion I think this change should be made, but done in the lower down processing logic so it applies to all multis with this issue rather than just volcanus. Then implementers don't need to work around it either