Sim statistics update frequency

Creating scripts
Post Reply
User avatar
Lunk Portal
Posts: 150
Joined: Wed Jan 26, 2022 10:03 am
Location: Northern Michigan
Has thanked: 100 times
Been thanked: 151 times
Contact:

Sim statistics update frequency

Post by Lunk Portal »

Hey everyone!

I like having the region stats to look at, but don't want to be ridiculous with the updating. How often should a script poll the stats? I'd like it to be accurate without being a drain on resources.

Thanks!
These users thanked the author Lunk Portal for the post:
Shandon Loring
User avatar
Ilan Tochner
Posts: 6726
Joined: Sun Dec 23, 2012 8:44 am
Has thanked: 5243 times
Been thanked: 4674 times
Contact:

Re: Sim statistics update frequency

Post by Ilan Tochner »

Hi Lunk,

Are you referring to the stats on your world's World Page or inworld?
User avatar
Lunk Portal
Posts: 150
Joined: Wed Jan 26, 2022 10:03 am
Location: Northern Michigan
Has thanked: 100 times
Been thanked: 151 times
Contact:

Re: Sim statistics update frequency

Post by Lunk Portal »

Ilan Tochner wrote:
Thu Mar 27, 2025 9:23 am
Hi Lunk,

Are you referring to the stats on your world's World Page or inworld?
On my server at home, but I would like to keep it on my in-world if it is not too much of a drain.
User avatar
Ilan Tochner
Posts: 6726
Joined: Sun Dec 23, 2012 8:44 am
Has thanked: 5243 times
Been thanked: 4674 times
Contact:

Re: Sim statistics update frequency

Post by Ilan Tochner »

Depending on what you check between once per second to once per 30 seconds. I suggest you run tests on your hardware and see how it affects CPU usage in an empty region and in one that has a lot of other scripts running. If it increases CPU usage by more than 0.1% then you're checking too frequently.
These users thanked the author Ilan Tochner for the post (total 2):
Lunk PortalShandon Loring
Post Reply