Quote:
Originally Posted by _tao4229_
If you're only loading the valid coordinate info for EVERY map it should take about 40-50mb(estimation here, but 20mb for one map isn't right) (depending on how old the client is). If your server has the memory, load it into memory. Inlining DMaps and checking them every time a player or mob moves, drops, etc. would be ridiculous. You can compress them when stored (to a solid disk), but if you have to uncompress the memory every time you need to check it, it might start to use a lot of CPU (depending on how much it's compressed/the compression algorithm)
|
I use the client 1017, I think it's the client 4311 US. I load the access, the terrain, the altitute and the portals in an array. I load the DMap in memory and with the program named iBruteforce Memory Optimizer, I reduce the memory.
I have calculated the used memory whitout compression of some maps:
Code:
TC -> 18mb
PC -> 19mb
AM -> 18mb
DC -> 18mb
BI -> 21mb
MC -> 20mb
GW -> 03mb
When I load all the maps, I have like 120mb of memory used by the maps.
I obtained the code of the program which I used and I have adapted it to the C# and I put it in my source. With the loading, with the 7 maps, instead of obtaining 120mb, I obtain approximately 3mb. I do not see any algorithm of compression…
#merged