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

Netplay netpacket interface connection flow improvements #15986

Merged

Conversation

schellingb
Copy link
Contributor

Description

This PR contains some frontend usability improvements for the new libretro netpacket core interface introduced in #15413 and refined in #15887. This is purely improvements in the reference frontend RetroArch and there are no further changes to libretro.h this time.

Three things are addressed:

  • Allow starting netplay host while a netpacket core is running without restart
  • Allow connecting to a host while a netpacket core is running without restart
  • Avoid clients getting stuck in connection loop if the host has the content paused while a client connects by automatically unpausing

Because a core using the netpacket interface does not require the syncing up of Netplay participants' states, we don't need to restart the content when hosting a session or force a client to run the exact same content. Sometimes two players might actually want to run different contents and still connect together. A common example is a Pokemon game where there are multiple variants of a game that can all talk to each other over some communication peripheral like the Game Boy Advance Wireless Adapter.

All changes are only effective if the loaded core is using the new netpacket interface. So the existing regular netplay remains fully untouched.

Related Issues

Related Pull Requests

Reviewers

- Allow starting netplay host while a netpacket core is running without restart
- Allow connecting to a host while a netpacket core is running without restart
- Avoid clients getting stuck in connection loop if the host has the content paused while a client connects by automatically unpausing
@LibretroAdmin LibretroAdmin merged commit f029b41 into libretro:master Dec 9, 2023
23 checks passed
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
- Allow starting netplay host while a netpacket core is running without restart
- Allow connecting to a host while a netpacket core is running without restart
- Avoid clients getting stuck in connection loop if the host has the content paused while a client connects by automatically unpausing
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.

2 participants