#(technofied) Do pathfinding/walking NPCs keep chunks loaded?
36 messages · Page 1 of 1 (latest)
(technofied) Do pathfinding/walking NPCs keep chunks loaded?
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
no
What is typically the laggy part about NPCs I should avoid then?
hard to say, if you are experiencing problems then
!spark
The "timings" system within Spigot/Paper is incredibly inaccurate for use with Citizens, and cannot be used to diagnose any issues related to Citizens. It notably blames Citizens for a significant amount of entity-related lag (that isn't in any way caused by Citizens).
For accurate timings, you need a Java profiler. There are a variety of profiler options (WarmRoast, YourKit, VisualVM, ...), but the simplest to use on a Spigot server is a plugin named "Spark" that embeds WarmRoast, which you can find here: https://www.spigotmc.org/resources/spark.57242/.
To get a spark report, type /spark profiler start, then replicate lag issues (for no more than about a minute), then /spark profiler stop, and post the link it gives you.
@past crescent
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@past crescent
Sorry for the wait, got side tracked
Am I right in saying Citizens is sync loading chunks?
When beginning pathfinding yes it will load required chunks
Shouldn't that happen async (?)
It could happen async, but currently it does not
Hmm ok, what should I do in the interim?
You don't necessarily have to do anything
(I assume this is a harder task, that'll be done later)
You could reduce the amount of pathfinding that occurs but that depends on how your setup is
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@past crescent
Sorry I keep getting side tracked
I read somewhere that if its under 300 points its fine, which most if not all of mine are
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@past crescent
Not that simple. https://discord.com/channels/315163488085475337/1101906537812861089 tracks this if you want to wait there
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@past crescent
Gotcha, ty!
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@past crescent