Shorten avatar check interval, add guest log

Reduce the avatar tracking throttle from 30s to 10s to make avatar updates more responsive (update conditional and comment). Also add an informational log when the guest list becomes ready to track. No other functional changes.
This commit is contained in:
Madpeter 2026-02-05 22:18:50 +00:00
parent 27d5e29487
commit 9c5274d656

View file

@ -722,9 +722,9 @@ namespace SecondBotEvents.Services
protected void TrackAvatarsOnParcel()
{
long dif = SecondbotHelpers.UnixTimeNow() - lastAvUpdate;
if (dif < 30)
if (dif < 10)
{
// only check for changes every 30 secs
// only check for changes every 10 secs
return;
}
lastAvUpdate = SecondbotHelpers.UnixTimeNow();
@ -743,6 +743,10 @@ namespace SecondBotEvents.Services
return;
}
avatarhash = hash;
if (GuestListLoaded == false)
{
LogFormater.Info("OnEvent Service [Guest list ready to track]");
}
if (GuestListLoaded == true)
{