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

getItem() was called 600 million times by HEE when it started GTNH #12254

Open
4 tasks done
wohaopa opened this issue Jan 12, 2023 · 12 comments · Fixed by GTNewHorizons/Hardcore-Ender-Expansion#13
Open
4 tasks done
Labels
Mod: HEE Status: Needs Discussion Issue requires developer/staff/admin discussion

Comments

@wohaopa
Copy link
Contributor

wohaopa commented Jan 12, 2023

Your GTNH Discord Username

No response

Your Pack Version

2.2.8

Your Proposal

https://github.com/GTNewHorizons/Hardcore-Ender-Expansion/blob/dedd607537af03817f44ff94931f009b7be14903/src/main/java/chylex/hee/mechanics/orb/WeightedItemList.java#L8

image
The time and percentage are inaccurate.

Your Goal

This is just a brute force algorithm written to ensure the uniqueness of the list elements. I think there should be other ways to replace it.

Your Vision

Use efficient algorithms.

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying I like this change please reconsider adding it will prompt us to investigate and reopen it once we confirm your report.
  • I understand this change request may not attract enough attention and thus not be implemented.
  • I understand this change request may be rejected due to other community members think it's inappropriate.
  • I believe this feature would make the pack better.
@wohaopa wohaopa added Status: Triage Issue awaiting triage. Remove once this issue is processed Suggestion labels Jan 12, 2023
@boubou19
Copy link
Member

ahah what a shitty way of doing stuff

@boubou19 boubou19 added Type: Need Code Changes Type: Lag Issue causes TPS or FPS lag Mod: HEE and removed Suggestion Status: Triage Issue awaiting triage. Remove once this issue is processed labels Jan 12, 2023
@dahgul333
Copy link

Holy F...

@JustAlkaid
Copy link

Why not delete HEE instantly
I think we don't need this mod because there are little player need infinite The End dimension

@Dream-Master
Copy link
Member

Why not delete HEE instantly I think we don't need this mod because there are little player need infinite The End dimension

We not remove Mods because of such code issues. We fix this issue.

@mitchej123
Copy link
Contributor

Unless anyone has a strong argument in favor of keeping them, I'm going to neuter the instability orbs and remove this giant lag fest. @Connor-Colenso is on board ;)

@Shahelion
Copy link

So this is why the orbs just do nothing now?

@Rakdarian
Copy link

Can we actually fix this issue? it was a neat way post-nerf to get dungeon loot and was a fun minigame. Getting rid of it feels bad

@Dream-Master Dream-Master reopened this Nov 19, 2024
@Dream-Master
Copy link
Member

@Connor-Colenso can you check to make it work again ?

@Connor-Colenso
Copy link
Contributor

The orbs were totally broken before so I wouldn't be for bringing them back. They could give any item in the game that had a "recipe" if I recall correctly, including corrupted items with invalid NBT and items that totally broke intended progression. That and they were insanely laggy.

So, I don't think they will see a return.

@boubou19
Copy link
Member

If it makes a return, that would be with a predefined looting table, but that would remove a lot of incentive to go for this item, as it was known to be incredibly powerful, provided you didn't corrupt your world with it. And i don't think this item missing from HEE in the pack is a great loss.

@Shahelion
Copy link

Shahelion commented Nov 19, 2024 via email

@Rakdarian
Copy link

that was the previous implementation prior to this change. You could only get stronghold/dungeon loot stuff. It was a part of my playthrough on LewisSaber's server

@chochem chochem added Status: Needs Discussion Issue requires developer/staff/admin discussion and removed Type: Lag Issue causes TPS or FPS lag labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: HEE Status: Needs Discussion Issue requires developer/staff/admin discussion
Projects
None yet
10 participants