No trees around spawn causes game freezing #4293
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#4293
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MineClone2 version: tested both 0.86.2 and development master
What happened?
While investigating a world that caused gameplay to freeze repeatedly to the point of being unplayable, I found that the source of the large freezes was the function can_find_tree() inside mod/PLAYER/mcl_spawn when there were no trees around spawn. The repeated pathfinding attempts consumed large amounts of main thread CPU time every time spawn moved, and spawn was moving every 30 seconds.
What should happen:
The game should not freeze periodically.
Steps to reproduce
A good read about world spawn and different seeds: #515. And the other relevant issue I mentioned on Discord: #1230.