Skip to content

Conversation

@otavepto
Copy link
Contributor

@otavepto otavepto commented Nov 24, 2025

  • By default, P2P manager will share packets flagged "unreliable", otherwise packets won't be shared (hybrid mode)
  • Allow specifying the packet sharing mode for the old P2P networking interface ISteamNetworking via ini config
  • Remove channels with no packets in P2P manager
  • Remove outdated packets in P2P manager, packets existing for more than 20 seconds will be removed to avoid increasing memory consumption forever in case nothing was consumed over time

I noticed that the older games which require sharing, send packets with flag k_EP2PSendUnreliable or k_EP2PSendUnreliableNoDelay.
While the other games which require the opposite use k_EP2PSendReliable.
So I assumed this is the differentiating factor, but since that's just a wild guess, I added an option in the ini file to allow switching between the hybrid, old, and new behaviors.

Fixes and closes #385

@Detanup01 Detanup01 merged commit f5ac384 into Detanup01:dev Nov 26, 2025
64 checks passed
@otavepto otavepto deleted the patch/p2p-cfg branch November 26, 2025 22:03
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

Successfully merging this pull request may close these issues.

Craft The World infinite load when start game from Release 2025 09 13 to last #383 fix

3 participants