YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

In-game: Rollback synctest mode lags and disconnects frecuently #979

Open iampremo opened 1 year ago

iampremo commented 1 year ago

GM-6417 We have seen an increase in users experiencing lag and disconnections testing their games online using synctest mode from recent updates.

Steps You must be logged in with a GX games account and have selected a region, otherwise go to https://gx.games/profile/account-details

  1. Open the attached sample
  2. Run the project selecting the GX.games VM/YYC target
  3. Scroll down to the bottom of the browser page and press "Copy URL"
  4. Paste the URL into another window in the same browser
  5. Let the clients connect
  6. Observe the issue

Issue has improved/been resolved in the Jan23 branch IDE v2023.100.0.252 Runtime v2023.100.0.264, leaving it as feedback.

Flasma commented 1 year ago

I could not see the sample, so let me say from my experience. Auto starting of rollback multiplayer game causes this kind of problem.

My solution on my project:

  1. Use rollback_use_manual_start()
  2. Check number of connected players using Rollback event
  3. If fully players connected, wait for few seconds, then call rollback_start_game()

This improves in lag or disconnection a little.

using 2023.200.0.281 Beta IDE

Flasma commented 1 year ago

Sync test mode is for local test without multiple players. So connections are not needed. That runs offline. I think something is wrong.