diff options
author | UbitUmarov | 2016-08-04 01:16:17 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-04 01:16:17 +0100 |
commit | 9e07c557461388a50dc430ecb2cc608f32431f47 (patch) | |
tree | 00a6976edb37cc6338068f3514722eccdac925c3 /OpenSim/Region | |
parent | try to speed up get by position X,Y on region info cache (diff) | |
download | opensim-SC_OLD-9e07c557461388a50dc430ecb2cc608f32431f47.zip opensim-SC_OLD-9e07c557461388a50dc430ecb2cc608f32431f47.tar.gz opensim-SC_OLD-9e07c557461388a50dc430ecb2cc608f32431f47.tar.bz2 opensim-SC_OLD-9e07c557461388a50dc430ecb2cc608f32431f47.tar.xz |
no need to place normal size regions on the inner lookup table (HANDLEMASH ? its MASK)
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs index 37fa441..221ec67 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionInfoCache.cs | |||
@@ -631,8 +631,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid | |||
631 | 631 | ||
632 | private void addToInner(GridRegion region) | 632 | private void addToInner(GridRegion region) |
633 | { | 633 | { |
634 | int rsx = region.RegionSizeX >> 8; | 634 | int rsx = region.RegionSizeX; |
635 | int rsy = region.RegionSizeY >> 8; | 635 | int rsy = region.RegionSizeY; |
636 | |||
637 | if(rsx < 512 && rsy < 512) | ||
638 | return; | ||
639 | |||
640 | rsx >>= 8; | ||
641 | rsy >>= 8; | ||
642 | |||
636 | ulong handle = region.RegionHandle & HANDLEMASH; | 643 | ulong handle = region.RegionHandle & HANDLEMASH; |
637 | fastRegionHandle fh = new fastRegionHandle(handle); | 644 | fastRegionHandle fh = new fastRegionHandle(handle); |
638 | uint startY = fh.y; | 645 | uint startY = fh.y; |