Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Shooter 3D : multiplayer

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 2nd Jul 2018 10:51
Hi
I'm trying to add a little LAn-network mode on my little Shooter3D.

What is the best way to get the position of the other players ?
If I send the position each frame, this means send 60 time by second (or FPS /second) the new position.
I think its a little too much, because on my pc or android, that "lag".

So how can I do that ?

Thanks
AGK2 tier1 - http://www.dracaena-studio.com
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 2nd Jul 2018 18:44 Edited at: 2nd Jul 2018 18:47
You could limit sending packets like this:

PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 2nd Jul 2018 19:54
Take a look at this article

https://www.reddit.com/r/gamedev/comments/4eigzo/generally_how_often_do_most_realtime_multiplayer/


PSY LABS Games
Coders don't die, they just gosub without return
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 6th Jul 2018 15:42
Hi

Thank, I will study that
AGK2 tier1 - http://www.dracaena-studio.com

Login to post a reply

Server time is: 2024-11-23 12:49:45
Your offset time is: 2024-11-23 12:49:45