Thread: l2c# [dev] team
View Single Post
Old 11.05.2006, 17:12   #46
Stormi
Архивный участник
 
Join Date: Nov 2005
Posts: 15
Default

Quote:
1. client geodata is used to build the "world"
With nice tool from HD it is just question of time
Quote:
2.1 the server has to build the world using the client geodata first
Sure. As you said format is efficient. Just use memory layout as in file - make big square (2d arrays), in each element make arrays of smaller squares and so on until you get 3D array of 8x8 plates with heights. This way will give you exact square where item located with few iterations. No huge cycles - less cpu usage and faster answer from server.
Quote:
2.2 then it has to regenerate all the movable axis and heights and layers, blah blah blah
Just make pointers between squares from NSEW bits? It will use at least 4 times more ram than file size but will significantly speed up path finding...
Quote:
2.3 then it'll have to compare it to the current mob location, player, etc, blah blah
Just having fast method to locate square where item located will make this compare fast, isnt it?
Quote:
2.4 multiply this by the number of 1k++ users and 4k++ mob u have.. hohoho
Heh.... Maybe you want to say 40K++ mob? I belive we have 4K+ classes but each class have at least 10 (just got this number from /dev/random) instanses in the word or i'm wrong? Who can tell how many creatures in the world server should support? I have no idea, just a lot... So 1K++ users is not a big problem
Quote:
final sum = lag festival
If NC did this, we also can... Or can not?
Stormi is offline