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

nether portal cannot load chunk centered on itself 3*3 chunks as vanilla #198

Open
cgw2023 opened this issue Feb 15, 2024 · 1 comment
Open
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.20.2 Game version 1.20.2

Comments

@cgw2023
Copy link

cgw2023 commented Feb 15, 2024

Expected behavior

nether portal under normal circumstances can be loaded centered on itself 3*3 chunks

Observed/Actual behavior

nether portal chunk loading centered on itself 3*3 chunks seems to have failed

Steps/models to reproduce

Whenever an entity is teleported through a nether portal, the chunk at the linked portal gets load ticket with load level of 30, meaning that it is fully loaded and can process entities. This load level also spreads to adjacent chunks but they get lower for each chunk. This results in 8 more fully loaded "entity ticking" chunks with gradually fewer loaded chunks further out.

These chunks remain loaded for 15 seconds but this timer gets refreshed each time the entity passes through the portal (including mobs wandering through it from either direction). This can be used to permanently load chunks, creating a "chunk loader". Permanently-loaded chunks created using chunk loaders create a considerable amount of lag.

https://youtu.be/yVc1LPf_LhY

Plugin and Datapack List

Bukkit Plugins:
AnnouncerPlus, AntiPopup, Attollo, AutoTreeChop, AxInventoryRestore, AxShulkers, BetterRTP, BlockLocker, BlueMap, BungeeGuard
Chunky, ChunkyBorder, CMILib, CodFrame, CoreProtect, DecentHolograms, DeluxeMenus, DiscordSRV, DragonDropElytra, Essentials
EssentialsChat, EssentialsGeoIP, EssentialsProtect, EssentialsSpawn, FancyNpcs, floodgate, FoliaFlow, GreenChunk, GSit, HeadDrop
Kaiivoid, LuckPerms, Matrix, PlaceholderAPI, PlayerWarps, ProtocolLib, Residence, ShulkerRespawner, spark, TAB-Bridge
Vault, ViaBackwards, ViaVersion, VillagerOptimizer, zAuctionHouseV3

Folia version

This server is running Folia version git-Folia-"3843340" (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 3843340 on dev/1.20.2)

Other

No response

@cgw2023 cgw2023 added status: needs triage type: bug Something doesn't work as it was intended to. labels Feb 15, 2024
@cgw2023 cgw2023 changed the title nether portal under normal circumstances can be loaded centered on itself 3*3 chunks nether portal cannot load chunk centered on itself 3*3 chunks as vanilla Feb 15, 2024
@Spottedleaf
Copy link
Member

Any mechanic that relies on precise timing of these tickets cannot work on Folia. The ticket is added before the entity is teleported, but Folia adds some number of ticks of delay before the entity arrives to the target location. This doesn't take in account the fact that regions tick in parallel and as a result there is no synchronisation in the ticks between them.
Folia additionally enforces that the chunks in the entity's bounding box is loaded, which may add yet more delay after the ticket is added before the entity arrives.

I can see locally that the ticket is being added, so it is definitely not due to a lack of the ticket being added.

So if your machine relies on the ticket being there for exactly 300 ticks, it can't work. Do you know how tight the timing is on this machine?

@kashike kashike added the version: 1.20.2 Game version 1.20.2 label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to. version: 1.20.2 Game version 1.20.2
Projects
None yet
Development

No branches or pull requests

3 participants