Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbearable lagging when playing Duke3D over PPTP #11

Open
fragglet opened this issue Sep 11, 2021 · 0 comments
Open

Unbearable lagging when playing Duke3D over PPTP #11

fragglet opened this issue Sep 11, 2021 · 0 comments

Comments

@fragglet
Copy link
Owner

Report by TheBaratusII:

https://youtu.be/K9xkIxuc6dc

The bug is at 27:19
The PPTP connection lagged the game really hard

fraggle — 08/09/2021
PPTP as well?
THEBaratusII — 08/09/2021
KAAN was on DOSBox and ZNukem was either on DOSBox or PPTP

fragglet added a commit that referenced this issue Feb 23, 2022
Instead of creating a new raw socket for every new PPTP session, just
multiplex all sessions over a single socket.

I put this change together intending it as a solution to #11 but from
my experiments it appeared that it did not solve the problem, since
Linux appears to deliver raw packets to the receive queues of all raw
sockets bound to a particular protocol.

However, there are still a couple of advantages to this change. Firstly,
it should be more efficient as packets only get received a single time.
Secondly, it means that the GRE server is established on startup,
meaning that any problems with eg. permission errors will be made
apparent on startup, rather than becoming a hard-to-debug error when a
user tries to connect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant