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 c957b90 commit ff4d13d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ private void onReadPacket(PacketEvent.Receive event) {
for (int y = 0; y < 16; y++) {
for (int z = 0; z < 16; z++) {
int currentY = Y + y;
if (currentY < Ymin || currentY > Ymax) continue;
if (currentY <= Ymin || currentY >= Ymax) continue;
blockposi=new BlockPos(x, currentY, z);
BlockState blerks = section.getBlockState(x,y,z);
if (blerks.getBlock()!=Blocks.AIR){
Expand Down

0 comments on commit ff4d13d

Please sign in to comment.