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

Optimize BasinRenderer #7124

Open
wants to merge 2 commits into
base: mc1.20.1/dev
Choose a base branch
from

Conversation

MoePus
Copy link
Contributor

@MoePus MoePus commented Nov 4, 2024

  • Do not render items and fluids if basin is higher than player
  • Do not get ChunkAccess if there is no visualizedOutputItems

@IThundxr IThundxr added the area: rendering Issue or PR is related to rendering label Nov 4, 2024
@MoePus MoePus marked this pull request as draft January 22, 2025 07:36
@MoePus
Copy link
Contributor Author

MoePus commented Jan 31, 2025

Breaks basin on contraptions

@MoePus MoePus closed this Jan 31, 2025
@VoidLeech
Copy link
Contributor

In the same way that you did instanceof PonderWorld, could you not add instanceof ContraptionWorld too, or does that still break them? (Or probably better: just instanceof WrapperWorld)

@MoePus
Copy link
Contributor Author

MoePus commented Jan 31, 2025

In the same way that you did instanceof PonderWorld, could you not add instanceof ContraptionWorld too, or does that still break them? (Or probably better: just instanceof WrapperWorld)

Yes you are right... i was stuck on making this code compatible with contraptions

@MoePus MoePus reopened this Jan 31, 2025
@MoePus MoePus force-pushed the mc1.20.1/optimize-basin-renderer branch from 5544a69 to 4ecc18e Compare January 31, 2025 15:01
@MoePus MoePus marked this pull request as ready for review January 31, 2025 15:01
* Do not render items and fluids if basin is higher than player
* Do not get ChunkAccess if there is no visualizedOutputItems
Fix items culled wrongly if player is resized
@MoePus MoePus force-pushed the mc1.20.1/optimize-basin-renderer branch from 4ecc18e to 1878001 Compare January 31, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: rendering Issue or PR is related to rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants