redgreenandblue
Member
- ServUO Version
- Publish Unknown
- Ultima Expansion
- None
I've been looking into the file Movement.cs (RunUO 2.6 but the changes to ServUO are superficial it seems) with the aim of making CheckMovement() faster and I suspect that the number of items per sector plays a role. I found out that there is a variable "SectorSize" which is hardcoded to "16" in Map.cs which may or may not control this (it is not obvious that it is used anywhere).
So I was wondering: Is there a straight-forward way of changing the sector size? And, has anyone ever experimented with this value?
My guess is that a smaller value can become beneficial when the density of items on the server becomes large.
On a side-note: CheckMovement() is possibly the toughest piece of code I have ever looked at.

So I was wondering: Is there a straight-forward way of changing the sector size? And, has anyone ever experimented with this value?
My guess is that a smaller value can become beneficial when the density of items on the server becomes large.
On a side-note: CheckMovement() is possibly the toughest piece of code I have ever looked at.