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

Steam P2P messages are delayed by almost 60 seconds #595

Open
BrickmadeProductions opened this issue Feb 17, 2024 · 1 comment
Open

Steam P2P messages are delayed by almost 60 seconds #595

BrickmadeProductions opened this issue Feb 17, 2024 · 1 comment

Comments

@BrickmadeProductions
Copy link

I recently just got my godot game setup with multiplayer, using steamworks.net p2p for syncing position information. I have the

OnP2PRequestCallback(P2PSessionRequest_t request) callback setup, with

SteamNetworking.AcceptP2PSessionWithUser(request.m_steamIDRemote); inside the callback.

I am sending position data every frame, and I am receiving position data every frame (I have prints on both ends) but for some reason it takes almost a minute for the data coming in to change to what it was 1 minute ago on the opposing user's client. I genuinely have no clue why this would happen, its such a weird bug I have no idea how to even approach it. This has been reproduced with a testing computer I have on my network as well as a friend's computer. (both being connected p2p to my computer). I have also confirmed the connections and both clients have a valid session with eachother. Any Ideas?

@Idles
Copy link

Idles commented Feb 24, 2024

The Steam APIs you're using are deprecated and shouldn't be used for new projects. You should build on the newer P2P APIs like ISteamNetworkingSockets or ISteamNetworkingMessages.

If you have other usage problems (that aren't clearly caused by Steamworks.NET), you'll have much more luck getting answers in the official Steamworks discussion board

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

2 participants