#(technofied) Do pathfinding/walking NPCs keep chunks loaded?

36 messages · Page 1 of 1 (latest)

past crescent
#

See title. I don't want to reintroduce walking NPCs if they will cause lag by loading chunks. 😄

pallid mapleBOT
#

(technofied) Do pathfinding/walking NPCs keep chunks loaded?

pallid mapleBOT
#

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.

past crescent
#

What is typically the laggy part about NPCs I should avoid then?

misty swan
#

!spark

lone salmonBOT
# misty swan !spark
Info: 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.

manic anvil
#

@past crescent

verbal torrentBOT
#
Thread Closing Reminder

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

past crescent
#

Sorry for the wait, got side tracked

#

Am I right in saying Citizens is sync loading chunks?

misty swan
#

When beginning pathfinding yes it will load required chunks

past crescent
misty swan
past crescent
misty swan
past crescent
#

(I assume this is a harder task, that'll be done later)

misty swan
#

You could reduce the amount of pathfinding that occurs but that depends on how your setup is

verbal torrentBOT
#
Thread Closing Reminder

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

past crescent
#

Sorry I keep getting side tracked

past crescent
verbal torrentBOT
#
Thread Closing Reminder

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

past crescent
#

I don't think its resolved though?

#

Shouldn't the sync chunk loading be made async

misty swan
verbal torrentBOT
#
Thread Closing Reminder

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

past crescent
#

Gotcha, ty!

verbal torrentBOT
#
Thread Closing Reminder

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