GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
255 stars 176 forks source link

tierByVoltage optimizations #2617

Closed TechLord22 closed 2 months ago

TechLord22 commented 2 months ago

What

Improves performance of getTierByVoltage, getOCTierByVoltage, and getFloorTierByVoltage. Also corrects GTValues.V[GTValues.MAX]'s value to be 1 << 31 instead of (1 << 31) - 1.

Much thanks to @krossgg and @M-W-K for working on optimizing these functions while I benchmarked them.

Outcome

Improves recipe logic related performance.