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

Performance issue caused by NamespacedSurfaceRuleSource #159

Open
racoonman2 opened this issue Mar 3, 2024 · 8 comments
Open

Performance issue caused by NamespacedSurfaceRuleSource #159

racoonman2 opened this issue Mar 3, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@racoonman2
Copy link

What's the issue you encountered?

Performance is noticeably slower with TerraBlender, even when no other mods are installed. It seems this is due to NamespacedSurfaceRuleSource calling context.biome.get() for every non empty block in the chunk, while this only happens along the surface in vanilla. This could be fixed by grouping surface rules into a single sequence instead of having them be registered per biome namespace.

How can the issue be reproduced?

Create a world with TerraBlender installed

Logs

No response

Mod Version

1.20.2

Additional information

Heres some quick tests done by someone in the TerraForged discord. They arent perfect, but they still demonstrate the performance differences pretty well (note that the fix column refers to TerraBlender with it's surface rule api disabled)
image

@racoonman2 racoonman2 added the bug Something isn't working label Mar 3, 2024
@Uniter343
Copy link

Hi, the guy who did that test here. I've also done the same thing for Terrablender with Regions Unexplored (which had a surface rule problem on their own which they solved in RU 0.5.5)
Here are those results.

image-39

@racoonman2
Copy link
Author

To clarify, the version of TerraBlender used in the fix was modified to still work with Regions Unexplored's surface rules, so the world gen is still the same as normal TerraBlender regardless of the surface api being disabled

@TrickShow
Copy link

This is also an issue in 1.20.1

@Uniter343
Copy link

It's an Issue on all Terrablender versions as far as I can tell.

@JT122406
Copy link
Contributor

JT122406 commented May 3, 2024

Based on this someone made a fix? If so why not open a pr for it

@MagmaBro123
Copy link

MagmaBro123 commented May 10, 2024

Please resolve this. Any biome mod that depends on this mod is unusable and slows chunk loading to a snail's pace.

@Veynam
Copy link

Veynam commented Jun 3, 2024

Gosh took me a while to find what mod was suddenly causing us slowdown. Glad this was already found reported. Hope it gets fixed soon

@PakoJones88
Copy link

The diminution in performance is pretty noticeable, especially in big modpacks. Are the devs working on a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants