How do I Remove Lag from Multiplayer Pong Game

Get help using Construct 2

Post » Thu Apr 20, 2017 7:30 pm

I can't seem to get the LAN multiplayer pong lag to chill. Any suggestions?
B
3
S
1
Posts: 9
Reputation: 293

Post » Thu Apr 20, 2017 10:57 pm

There is an built in 80 ms interpolation delay for synced objects. This is to mitigate negative effects of latancy across a network. It should mostly be transparent to each player as long as you're not looking at both screens at the same time.

As for suggestions... what is your goal? If you want 0 delay, then make a local multiplayer game. Latency is not something you can make go away.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Fri Apr 21, 2017 12:06 am

Hmm. How about this, since I am terrible at explaining things, I can give you the capx to the game, and maybe you can fix it? I don't know how to explain this, I just want it to be that the peer doesn't lag in my pong game. The host is perfect but the peer is all jittery.
B
3
S
1
Posts: 9
Reputation: 293

Post » Fri Apr 21, 2017 12:30 am

It sounds to me like you're missing local input prediction, which is not specifically covered in the pong tutorial, but it is implemented to a degree. You simply need to locally set the position of the peer's paddle to the correct location on the peer side, so sync only corrects the paddle if there is a discrepancy (the jitter).

Image

If you rely only on the sync action to position your paddle, it will not look smooth. Local input prediction is described more in depth in the fourth multiplayer tutorial.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Fri Apr 21, 2017 12:36 am

I have
System Everytick
Paddle: Set Y to mouse.Y
Paddle: Set Y to Multiplayer.PeerState(PaddleR.PeerID,"y")

So should I put the name of the room (game) after "set T to Mouse.Y(game)<<<<<< to fix it?
B
3
S
1
Posts: 9
Reputation: 293

Post » Fri Apr 21, 2017 12:40 am

Looky, I'll give you the Capx with add the plugins and exports, and when the game "blows" I'll share add rev with you. I have no one to partner to help me, oh sob, oh sigh. I've been working on this pong game forever!!!! Won't you be my partner please? I feel like with your help, this could become the best Pong game on the market EVER. You are an expert after all. Pleeeeease.
B
3
S
1
Posts: 9
Reputation: 293

Post » Fri Apr 21, 2017 12:42 am

This pong game is very special. I promise, with the right implementations, it will be a hit. I'll try to give you anything you want, I just need a partner for once!!! No one wants to partner with me seemingly because they think, "Dude, it's just a pong game". Please partner with me?
B
3
S
1
Posts: 9
Reputation: 293

Post » Fri Apr 21, 2017 12:43 am

It's already on the market (Google Play) but the multiplayer is horrid. It's called Super Glow Pong (Multiplayer)
B
3
S
1
Posts: 9
Reputation: 293

Post » Fri Apr 21, 2017 1:06 am

I don't mind looking, but I can promise nothing ahead of time regarding if I can actually get it working or not...
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Fri Apr 21, 2017 1:28 am

Okay, fair enough. email me at greedlessgames at gmail dot com. I will send you all the necessary files.
B
3
S
1
Posts: 9
Reputation: 293


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests