Skip to content

Better Circle Scanning - #910

Merged
Robotgiggle merged 5 commits into
FallingColors:mainfrom
Stick404:FutureScanning
Aug 11, 2026
Merged

Better Circle Scanning#910
Robotgiggle merged 5 commits into
FallingColors:mainfrom
Stick404:FutureScanning

Conversation

@Stick404

Copy link
Copy Markdown
Contributor

Improves Spell Circle scanning by making a custom system to use ServerChunkCache#getChunkFuture's quicker chunk loading.
Creates a Helper Class in case spells/addons wish to use this system

Comment thread Common/src/main/java/at/petrak/hexcasting/api/utils/ChunkScanning.kt Outdated
}
val future = level.chunkSource.getChunkFuture(chunk.x,chunk.z, ChunkStatus.EMPTY,true).get()
if (future.left().isPresent){
chunks.put(chunkLong, future.left().get() as ImposterProtoChunk)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this cast safe?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh woops, I don't believe it is; thank you for the catch! I'll make ChunkScanning hold a list of ChunkAccesss instead

Stick404 and others added 2 commits May 24, 2026 13:05
…ing.kt

Co-authored-by: Aly Cerruti <aprime2003@gmail.com>
Improved Comment and removed unused import
@Robotgiggle Robotgiggle added 1.20 optimization Improvement to existing features or performance (no new features or design work) labels Aug 4, 2026

@Robotgiggle Robotgiggle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Can confirm this significantly improves performance of high density circle spam, even when connected to enormous ambit rods.

@Robotgiggle
Robotgiggle added this pull request to the merge queue Aug 11, 2026
Merged via the queue into FallingColors:main with commit 10db41b Aug 11, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting Aug 11, 2026
object-Object added a commit that referenced this pull request Aug 16, 2026
## Do not squash!!!

Includes PRs:
- #1224
- #1199
- #1103
- #1235
- #1236
- #1242
- #910
- #1248
- #1252
- #1251
- #1261

---------

Co-authored-by: IridescentVoid <265486018+IridescentVoid@users.noreply.github.com>
Co-authored-by: Robotgiggle <88736742+Robotgiggle@users.noreply.github.com>
Co-authored-by: Stickia <93604201+Stick404@users.noreply.github.com>
Co-authored-by: Hexxy Weblate <weblate@hexxy.media>
Co-authored-by: [object Object] <object@objectobject.ca>
Co-authored-by: Florian Meyer <flommeyer@gmail.com>
Co-authored-by: ChuijkYahus <zhaoclleonard23@outlook.com>
Co-authored-by: Anonymous <noreply@weblate.org>
Co-authored-by: miyucomics <72044529+miyucomics@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20 optimization Improvement to existing features or performance (no new features or design work)

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants