Commit 17d2cf1
committed
chore: n4e 7.0.0 spellings, review feedback and snapshot size
N4E 7.0.0 renamed NetCodeConfig to NetcodeConfig and moved its types into
Unity.Netcode. Use the 7.0.0 spelling, aliased for 6.7.0 the way the rest of
the unified code already is.
The editor test assembly still declared UNIFIED_NETCODE as a versionDefine
after #4158 made it project-level, so its unified block compiled while the
runtime's did not. It also referenced Unity.NetCode by name alongside the GUID
for the same assembly. Both removed, UNIFIED_NETCODE_7_0_0 added.
The snapshot packet size drops from 15000 to 4096. A snapshot is sent
unreliably, so losing any one of its fragments loses the whole snapshot: 4096
spans 3 datagrams at the 1400 byte MTU where 15000 spanned 11, and still caps
~840 ghosts at the measured 4.87 bytes each. The defaults version is bumped so
a project that already recorded the marker picks the new value up.
Review feedback:
- The experimental opt-in is gone. N4E ships as a normal 3.0.0 release.
- ResolveGlobalConfig's project scan is gone. N4E assigns NetcodeConfig.Global
from an InitializeOnLoadMethod and delayCall runs after those complete, so
there is nothing left for a scan to catch.
- The apply log uses the contextual logger at Developer level.
- UnifiedIsConfiguredCorrectly reports which setting is wrong rather than
discarding the reason it already computed.1 parent 2e3c48f commit 17d2cf1
7 files changed
Lines changed: 103 additions & 186 deletions
File tree
- com.unity.netcode.gameobjects
- Editor/Configuration
- Runtime/Configuration
- Tests
- Editor
- Runtime/Unified
Lines changed: 13 additions & 55 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | | - | |
10 | | - | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 22 | | |
35 | 23 | | |
36 | 24 | | |
37 | | - | |
38 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
39 | 28 | | |
40 | 29 | | |
41 | 30 | | |
| |||
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
49 | | - | |
| 38 | + | |
50 | 39 | | |
51 | 40 | | |
52 | 41 | | |
| |||
62 | 51 | | |
63 | 52 | | |
64 | 53 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 54 | | |
71 | 55 | | |
72 | 56 | | |
73 | 57 | | |
74 | 58 | | |
75 | 59 | | |
76 | 60 | | |
77 | | - | |
| 61 | + | |
78 | 62 | | |
79 | 63 | | |
80 | 64 | | |
| |||
84 | 68 | | |
85 | 69 | | |
86 | 70 | | |
87 | | - | |
| 71 | + | |
88 | 72 | | |
89 | 73 | | |
90 | 74 | | |
91 | 75 | | |
92 | 76 | | |
93 | 77 | | |
94 | 78 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 79 | | |
122 | 80 | | |
123 | 81 | | |
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 46 | + | |
| 47 | + | |
58 | 48 | | |
59 | 49 | | |
60 | 50 | | |
| |||
Lines changed: 7 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
| |||
218 | 215 | | |
219 | 216 | | |
220 | 217 | | |
221 | | - | |
| 218 | + | |
222 | 219 | | |
223 | 220 | | |
224 | | - | |
| 221 | + | |
225 | 222 | | |
226 | 223 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 224 | | |
233 | 225 | | |
234 | 226 | | |
235 | | - | |
| 227 | + | |
236 | 228 | | |
237 | 229 | | |
238 | | - | |
| 230 | + | |
239 | 231 | | |
240 | 232 | | |
241 | 233 | | |
242 | 234 | | |
243 | | - | |
| 235 | + | |
244 | 236 | | |
245 | 237 | | |
246 | 238 | | |
| |||
254 | 246 | | |
255 | 247 | | |
256 | 248 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | 249 | | |
296 | 250 | | |
297 | 251 | | |
| |||
0 commit comments