Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit c14bf21

Browse files
authored
Use the new Runtime by default (#703)
1 parent b44057a commit c14bf21

File tree

5 files changed

+62
-39
lines changed

5 files changed

+62
-39
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- Disabled protocol logging on Linux workers to prevent crashes. This will be reverted once the underlying issue is fixed.
2222
- Updated the `MobileWorkerConnector` to use the KCP network protocol by default.
2323
- Changed the `mobile_launch.json` config to use the new Runtime.
24+
- Updated all the launch configs to use the new Runtime.
2425

2526
### Fixed
2627

cloud_launch.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"template": "small_bridge_v2",
2+
"template": "small_entity_db_v2",
33
"world": {
44
"chunkEdgeLengthMeters": 50,
55
"snapshots": {
@@ -10,28 +10,32 @@
1010
"zMeters": 5000
1111
}
1212
},
13+
"load_balancing": {
14+
"layer_configurations": [
15+
{
16+
"layer": "UnityGameLogic",
17+
"hex_grid": {
18+
"num_workers": 2
19+
}
20+
}
21+
]
22+
},
1323
"workers": [
1424
{
1525
"worker_type": "UnityGameLogic",
1626
"permissions": [
1727
{
1828
"all": {}
1929
}
20-
],
21-
"load_balancing": {
22-
"auto_hex_grid": {
23-
"num_workers": 2
24-
}
25-
}
30+
]
2631
},
2732
{
2833
"worker_type": "UnityClient",
29-
"permissions": [{
34+
"permissions": [
35+
{
3036
"all": {}
31-
}],
32-
"load_balancing": {
33-
"singleton_worker": {}
34-
}
37+
}
38+
]
3539
}
3640
]
3741
}

default_launch.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"template": "small_bridge_v2",
2+
"template": "small_entity_db_v2",
33
"world": {
44
"chunkEdgeLengthMeters": 50,
55
"snapshots": {
@@ -16,26 +16,41 @@
1616
}
1717
]
1818
},
19+
"load_balancing": {
20+
"layer_configurations": [
21+
{
22+
"layer": "UnityGameLogic",
23+
"points_of_interest": {
24+
"num_workers": 1,
25+
"points": [
26+
{
27+
"x": 0,
28+
"z": 0
29+
}
30+
]
31+
},
32+
"options": {
33+
"manual_worker_connection_only": true
34+
}
35+
}
36+
]
37+
},
1938
"workers": [
2039
{
2140
"worker_type": "UnityGameLogic",
2241
"permissions": [
2342
{
2443
"all": {}
2544
}
26-
],
27-
"load_balancing": {
28-
"singleton_worker": {}
29-
}
45+
]
3046
},
3147
{
3248
"worker_type": "UnityClient",
33-
"permissions": [{
49+
"permissions": [
50+
{
3451
"all": {}
35-
}],
36-
"load_balancing": {
37-
"singleton_worker": {}
38-
}
52+
}
53+
]
3954
}
4055
]
4156
}

mobile_launch.json

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,40 @@
1616
}
1717
]
1818
},
19+
"load_balancing": {
20+
"layer_configurations": [
21+
{
22+
"layer": "UnityGameLogic",
23+
"hex_grid": {
24+
"num_workers": 1
25+
}
26+
}
27+
]
28+
},
1929
"workers": [
2030
{
2131
"worker_type": "UnityGameLogic",
2232
"permissions": [
2333
{
2434
"all": {}
2535
}
26-
],
27-
"load_balancing": {
28-
"auto_hex_grid": {
29-
"num_workers": 1
30-
}
31-
}
36+
]
3237
},
3338
{
3439
"worker_type": "AndroidClient",
35-
"permissions": [{
40+
"permissions": [
41+
{
3642
"all": {}
37-
}],
38-
"load_balancing": {
39-
"singleton_worker": {}
40-
}
43+
}
44+
]
4145
},
4246
{
4347
"worker_type": "iOSClient",
44-
"permissions": [{
48+
"permissions": [
49+
{
4550
"all": {}
46-
}],
47-
"load_balancing": {
48-
"singleton_worker": {}
49-
}
51+
}
52+
]
5053
}
5154
]
5255
}

workers/unity/spatialos.UnityGameLogic.worker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"bridge": {
1919
"worker_attribute_set": {
2020
"attributes": [
21-
"UnityGameLogic"
21+
"UnityGameLogic"
2222
]
2323
},
2424
"entity_interest": {

0 commit comments

Comments
 (0)