Reduce Number of Coorinates in Corrections File
Gogo1951 opened this issue ยท 2 comments
Description
From tests, when a mob has over 5 coordinates listed it's generally just as helpful if the coordinates are rounded vs. actual. So like instead of 77.1,13.5, just 77,14. Some mobs have literally hundreds of coordinates listed, and the number of coordinates may be hindering performance.
In one test, I was able to shave character count of the corrections file from 2200 to 700 characters, and coordinate pairs from 180 to 80 with no visible impact on mob locations in-game. When testing some of the longer coordinate sets, significant reductions can be made.
Good if we take a look at optimizing our corrections file, possibly even our database. Suggest only rounding and then de-duplicating coordinate sets that have more than 5 entries.
May be worth while to look into more aggressive rounding as the sets increase, so like maybe we round to the nearest whole coordinate for 6-20, and maybe we just look for edges and draw a polygon for sets larger than that. Will require additional exploration as many mob spawn points are clustered and not in contiguous areas.