Commit 6bc2289
fix: Shutting down client or host/server and not being able to start the client or host/server within same game instance (#496)
* implement NetworkUpdateLoop
* remove AdvanceFrame() and FrameCount
* update player loop injection points and INetworkUpdateSystem API
* add xmldoc and notes
* add NetworkUpdateLoopTests
* implement NetworkUpdateLoop plain and mixed tests
* update xmldoc
* small meta fix
* replace old network update loop with new RFC-backed network update loop
* replace WaitForEndOfFrame with WaitUntil in tests
* comment 'default' for NetworkUpdateStage.Update enum value
* optimization & refactoring pass
* dictionary lookups instead of index access to arrays
* optimize array allocation
* Fix: PostProcessing and Resetting NetworkingManager transport
This fixes two issues:
It prevents the postprocessing method ProcessScene from being run during scene transitions while in PlayMode within the editor.
This fixes the issue where the transport is no longer being polled for events upon shutting down the server,host, or client.
* fix: more robust fix for postprocessing bug
This prevents this post processing code from being executed when in PlayMode (editor and stand alone build)
* refactor: SceneSwitchProgress
This ended up not being needed in the end.
Reverting back to the original file.
* refactor: removing commented code and merge artifacts
Removing the commented out OnDisable function (the containing code was moved into the Shutdown method) and removed the Awake method (the containing code was moved into the Init method).
* refactor: merge artifacts
This hadn't fully registered the merge.
* refactor: Comments and Internal
Added some comments regarding where the RpcQueueContainer should be instantiated and shutdown.
Made the RpcQueueContainer internal, which also required me to make the QueueHistoryFrame internal and adjust some of the methods to match the same accessibility level.
Co-authored-by: M. Fatih MAR <mfatihmar@gmail.com>1 parent a950848 commit 6bc2289
6 files changed
Lines changed: 55 additions & 50 deletions
File tree
- com.unity.multiplayer.mlapi
- Editor
- Runtime
- Core
- Messaging/RpcQueue
- SceneManagement
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 35 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
386 | 407 | | |
387 | 408 | | |
388 | 409 | | |
| |||
639 | 660 | | |
640 | 661 | | |
641 | 662 | | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | 663 | | |
651 | 664 | | |
652 | 665 | | |
| |||
655 | 668 | | |
656 | 669 | | |
657 | 670 | | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | 671 | | |
663 | 672 | | |
664 | 673 | | |
665 | 674 | | |
666 | 675 | | |
667 | 676 | | |
668 | 677 | | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | 678 | | |
676 | 679 | | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
690 | 701 | | |
691 | 702 | | |
692 | 703 | | |
| |||
699 | 710 | | |
700 | 711 | | |
701 | 712 | | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
| 713 | + | |
707 | 714 | | |
708 | 715 | | |
709 | 716 | | |
| |||
1234 | 1241 | | |
1235 | 1242 | | |
1236 | 1243 | | |
1237 | | - | |
| 1244 | + | |
1238 | 1245 | | |
1239 | 1246 | | |
1240 | 1247 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | 574 | | |
576 | 575 | | |
577 | 576 | | |
| |||
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | 712 | | |
717 | 713 | | |
718 | 714 | | |
719 | 715 | | |
720 | 716 | | |
721 | 717 | | |
722 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | 113 | | |
115 | 114 | | |
0 commit comments