Skip to content

Commit

Permalink
1.1.5 BaseHunting/ChunkTracing Performance improved muchly
Browse files Browse the repository at this point in the history
***Base Hunting Performance Muchly Improved!!!***
**BaseFinder**
- Switched to reading the block positions from chunk sections so we can easily skip sections that are empty or null.
- Switching to reading chunk sections like this has also massively improved performance with BaseFinder.
- Made Saving and Loading base chunks to disk not enabled by default because it's really not necessary.
- Fixed the slider range for Sky Build Finder, it's minimum and slider range were too high meaning it couldn't be configured for all situations properly.
- Set the default for "Render-Distance(Chunks)" to 128 from 512.
- Added a function to both **BaseFinder** and **NewerNewChunks** which removes chunks from RAM if they are outside of the "Render-Distance(Chunks)" setting. This only will occur if the SaveData and LoadData settings are off (other wise it'd mess up the saved data).
- The function above may massively improve performance. I did leave SaveData and LoadData enabled by default for **NewerNewChunks** so you don't lose chunk data but you can disable those options to gain the benefit from this function if you want to (Or just press the Delete Chunk Data button once in a while in the options for it).

**NewerNewChunks**
- The Palette checks for BlockStates now only happen on sections that are not empty to improve performance and reduce some false positives.
- NewerNewChunks now only checks the unique blockstates against palettes that are a BiMap Palette because those are the only kind used for new structure generation. Previously I was just checking it against every palette because my previous method reading bytes couldn't see what kind of palette it was.
- Made biome palette checking only occur in the End dimension where it's needed.
- Made the taskexecutor code gooder for loading chunk datas in both **NewerNewChunks** and **BaseFinder**.

Chunk tracing using **NewerNewChunks** with **BaseFinder** is now super smooth and lag free :D
  • Loading branch information
etianl authored Aug 6, 2024
1 parent 54b7849 commit c957b90
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 174 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ In no particular order
- Please try [ViaFabricPlus](https://github.com/FlorianMichael/ViaFabricPlus), which will let you connect to almost any version from a new version client.
- Don't forget to try updating any other mods you are using if your game is crashing.

plz give me star on githoob kthx
plz give me star on githoob kthx
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings=1.21+build.9
loader_version=0.15.11

# Mod Properties
mod_version=1.1.4-1.21
mod_version=1.1.5-1.21
maven_group=pwn.noobs
archives_base_name=1trouser-streak

Expand Down
Loading

0 comments on commit c957b90

Please sign in to comment.