Commit Graph

7824 Commits

Author SHA1 Message Date
mischa
2788221f66 syntax 2023-07-26 11:33:45 +08:00
mischa
f4650eff64 buckets 2023-07-26 11:29:44 +08:00
mischa
0dd504de11 benchmark variant 2023-07-25 20:55:37 +08:00
mischa
42c701f72a benchmark simplified 2023-07-25 18:51:24 +08:00
mischa
61243a9fbd recalculate every nth 2023-07-24 22:12:45 +08:00
mischa
9cc3b32730 fix comment 2023-07-24 22:01:49 +08:00
mischa
ecfe339569 simplify insertion; only recalculate when removed 2023-07-24 21:56:23 +08:00
mischa
000ff99acf tests: insertfar 2023-07-24 21:38:20 +08:00
mischa
6c6a161e15 comments 2023-07-24 20:39:33 +08:00
mischa
5d7cce252b test 2023-07-24 20:37:25 +08:00
mischa
27038e7d75 comment 2023-07-24 20:36:25 +08:00
mischa
b46a5e9531 historyBounds.total 2023-07-24 20:35:55 +08:00
mischa
fea626943a insert in structure 2023-07-24 20:30:05 +08:00
mischa
0ce9833fa5 oops 2023-07-24 20:28:14 +08:00
mischa
ec7ccea685 Reset 2023-07-24 20:26:58 +08:00
mischa
e344091c33 HistoryBounds data structure - wip 2023-07-24 20:24:46 +08:00
mischa
6395b9e637 syntax 2023-07-24 20:04:58 +08:00
mischa
7cb6170a50 tests: revisit coverage 2023-07-24 19:34:05 +08:00
mischa
0c194e0e46 deterministic benchmark 2023-07-24 18:57:05 +08:00
mischa
54883e5787 benchmark improvements 2023-07-24 18:23:39 +08:00
mischa
471dfbaf95 move into lag comp 2023-07-24 18:20:53 +08:00
mischa
5cc9d2fb8f simple benchmark 2023-07-24 18:18:57 +08:00
mischa
3a845b0d90 easier 2023-07-24 18:00:31 +08:00
mischa
e75df9dfb3 Insert: naive implementation 2023-07-24 17:57:36 +08:00
mischa
639d80b59a HistoryBounds.Insert placeholder and test 2023-07-24 17:43:59 +08:00
mischa
8b2780d79f readme, folders 2023-07-24 12:23:21 +08:00
mischa
9311ef3523
fix: NetworkConnection "cannot send packet larger than ..." message now includes the message type which was too large. (#3560) 2023-07-24 06:08:55 +02:00
mischa
871a08c266 resaved test prefabs 2023-07-22 21:59:29 +08:00
mischa
6830a6e52c fix: NetworkMessages.MaxContentSize now considers channelId instead of always assuming reliable 2023-07-22 21:59:07 +08:00
mischa
d437dacac0
Update README.md (#3559) 2023-07-21 13:05:37 +02:00
mischa
135d87724a
Update README.md (#3558) 2023-07-21 13:04:57 +02:00
mischa
71f64c70f1
feature: bring back NetworkServer.disconnectInactiveConnections (#3556) 2023-07-21 06:11:14 +02:00
mischa
adee4ad140
fix: remove redundant RPC buffering. saved bandwidth, but introduced data races, complexity, extra buffer copies [credit: James, imer] (#3497) 2023-07-20 09:10:00 +02:00
mischa
d7fbee9d50 fix: NetworkIdentity.AssignAssetId() is now saved properly. fixes a bug where duplicated prefabs and prefab variants would still have the original prefab's assetId on disk, even though the Inspector showed the proper one. 2023-07-20 14:29:40 +08:00
mischa
ac6a881f1b fix: NetworkTime RTT now checks for malicious timestamps from the future 2023-07-19 19:24:05 +08:00
mischa
e45bfb47ab Compression: remove unnecessary QuaternionElement function 2023-07-19 13:15:40 +08:00
mischa
7e28e4ea02 Compression: more obvious TenBitsMax representation 2023-07-19 12:59:51 +08:00
mischa
483006eadc
feature: NetworkConnectionToClient.rtt via Ping & Pong Messages (#3545)
* NetworkConnectionToClient: send Ping message every PingFrequency

* breaking: NetworkPing/PongMessage .clientTime renamed to .localTime because it'll be used in both directions

* Server->Client->Server Ping/Pong messages and rtt

* don't ping in host mode

* adjust tests

* TODO
2023-07-18 11:19:12 +02:00
mischa
398d2e6d2c Examples: default send rate increased from 30 Hz to 60 Hz for remaining examples 2023-07-18 16:58:05 +08:00
mischa
8164018483 perf: default send rate increased from 30 Hz to 60 Hz for users to get better initial results 2023-07-18 16:54:49 +08:00
mischa
82c09850da Tanks demo: increase send rate from 30 Hz to 120 Hz to avoid rtt being too high. reduces rtt from ~30 ms to ~8ms. 2023-07-18 16:52:22 +08:00
mischa
f6cf32ee8d Lag Compensation demo: fix warning 2023-07-18 16:10:58 +08:00
mischa
70c34ecf5d NetworkBehaviour.OnValidate: GetComponentInParent(bool) 2020 support (credits FakeByte) 2023-07-18 15:37:04 +08:00
mischa
27e2238d0b typo 2023-07-18 15:14:26 +08:00
mischa
8b6364bb76 NetworkIdentity: correct GetComponentInParent explanations (credit: FakeByte) 2023-07-18 14:49:26 +08:00
mischa
6d4e460f87 NetworkIdentity: expose AssetGuidToUint in builds 2023-07-18 14:44:17 +08:00
mischa
4ec80368f6 fix: NetworkBehaviour.OnValidate can't find parent NetworkIdentity because both the Unity define and GetComponentInParent() are broken in 2023.3 LTS. 2023-07-18 14:33:34 +08:00
mischa
0315fb3345 fix: Tanks demo: replace Turret obsolete NetworkTransform with NetworkTransformUnreliable component 2023-07-18 14:09:09 +08:00
mischa
fcd3a6b91b perf: remove some unnecessary inlining to optimize instruction cache 2023-07-18 13:24:02 +08:00
mischa
0862b9b99f NetworkIdentity: expose AssetId to Guid translation function 2023-07-10 12:53:28 +08:00