hello everyone .
what is the best way to do the clients/monsters/npc's spawns
like when a player jumps what is the best way to spawn the in range entities .
i have tried to store the entities in some kind of dictionary (Local entities) and spawn them on jumping/walking ...> slow
i have stored every single valid X/Y in the game maps as a key with a Dictionary associated to that key as a value and stored the entities in that dictionary depending on the X/Y and spawned them on jumping/walking ...> slow
you know we ............ Improvise but fail sometimes :P
i have tried a foreach in the client map entities and yet ....> slow
tried to stick to the way TQ does it but it spawns the entities only on jumping... i guess i did it wrong or maybe there is a different way to do the spawns and i cant figure it out .
however when i say slow it means that when 35/40 player goes online and walk/jump all together at the same time maybe a guild war or something the cpu usage goes a little bit higher which can kill the processor when it comes to 300 or maybe 400 player ,
and the spawn amount is around 700 to 800 entities in each map .
walking is worse than jumping though as a walk packet is being sent for each step a player takes .
thats all i got soooo anything Inspiring/creative/smart something i never thought about or maybe something to make it a little bit better :P .
i mean anything ?
what is the best way to do the clients/monsters/npc's spawns
like when a player jumps what is the best way to spawn the in range entities .
i have tried to store the entities in some kind of dictionary (Local entities) and spawn them on jumping/walking ...> slow
i have stored every single valid X/Y in the game maps as a key with a Dictionary associated to that key as a value and stored the entities in that dictionary depending on the X/Y and spawned them on jumping/walking ...> slow
you know we ............ Improvise but fail sometimes :P
i have tried a foreach in the client map entities and yet ....> slow
tried to stick to the way TQ does it but it spawns the entities only on jumping... i guess i did it wrong or maybe there is a different way to do the spawns and i cant figure it out .
however when i say slow it means that when 35/40 player goes online and walk/jump all together at the same time maybe a guild war or something the cpu usage goes a little bit higher which can kill the processor when it comes to 300 or maybe 400 player ,
and the spawn amount is around 700 to 800 entities in each map .
walking is worse than jumping though as a walk packet is being sent for each step a player takes .
thats all i got soooo anything Inspiring/creative/smart something i never thought about or maybe something to make it a little bit better :P .
i mean anything ?