Forum Games Some questions about server resources

Discussion relating to game development with Flash

Some questions about server resources

Postby gnollik » July 5th, 2011, 8:37 pm

Hello, I`m try to create a game some like crimsonland 2 (shooter). But I`m not sure that it will work fine because of ping and I`m not sure that the server will process all computing without issues. For example I will have 10 players, each of them will shoot 5-10 bullets - it will be nearly 70 bullets in one time. And I will have 50 monsters. So I must check if any bullet hit the monster or other player: 70 (bullets) * 60 (monsters + players) = 4200 checks * 24 (frames) = nearly 100 000 checks each second + server will send all information (players, monsters, bullets coordinates) 24 times/second + server will computing new coordinates for monsters (send each monster to the nearest player).

So I`m fear that the server will not process all this fine. And because of different internet connection speed it will be impossible to realize such game. I`m right?
gnollik
Paid Member
 
Posts: 24
Joined: March 12th, 2011, 10:08 pm

Re: Some questions about server resources

Postby Henrik » July 5th, 2011, 8:46 pm

No, that is way too much processing, which is why noone does it like that. Cheat more. Interpolate. Guess. Check only when you have to.

You should probably read through our tutorial on the subject:
http://playerio.com/documentation/tutor ... -tutorial/

There's some more links here as well:
http://playerio.com/blog/2011/01/28/how ... ng-issues/
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to Games