Paul Pacheco
246a551151
perf: AddPlayerMessage is now a value type
2019-07-30 18:01:55 -05:00
Paul Pacheco
b5b2f3e1eb
perf: rpc messages are now value types ( #997 )
2019-07-30 14:33:44 +02:00
Paul Pacheco
f9ff44399b
feat: support writing and reading array segments ( #918 )
...
* Unit tests for writing array segments
* Add tests back for ArraySegment<int>
* Work in progress trying to generate writer
* Avoid boxing
* Weaver can now generate readers and writers for ArraySegment<T>
* Added by accident
* Clarify the loop
* Explain method specializer
* Remove unused method
* Explain loop in reader
2019-07-30 10:21:43 +02:00
MrGadget
0df129f4c4
Replace Basic Example Again ( #996 )
2019-07-29 18:21:57 -05:00
Paul Pacheco
2d3151a5da
Folder is gone
2019-07-29 17:54:38 -05:00
Paul Pacheco
40c7d97ed9
perf: SpawnSceneObjectMessage is now a value type
2019-07-29 17:53:05 -05:00
Paul Pacheco
a44efd1f92
perf: SpawnPrefabMessage is now a value type
2019-07-29 17:52:06 -05:00
MrGadget
2ba6847276
Correct scene for Basic Example ( #994 )
2019-07-30 00:05:46 +02:00
Paul Pacheco
407b36acb7
perf: SceneMessage is now a value type ( #989 )
2019-07-29 15:52:46 +02:00
Paul Pacheco
f99e71ebdf
perf: update vars is now a value type ( #990 )
2019-07-29 15:52:35 +02:00
Paul Pacheco
a32c5a9456
perf: objdestroy message is now a value type ( #993 )
2019-07-29 15:52:19 +02:00
Paul Pacheco
a49d938fbe
perf: ObjHideMessage is now a value type ( #992 )
2019-07-29 15:52:08 +02:00
Paul Pacheco
d071438d01
perf: ClientAuthorityMessage is now a value type ( #991 )
2019-07-29 15:51:43 +02:00
Paul Pacheco
145edaa50b
perf: empty messages are value types now
2019-07-29 08:18:17 -05:00
Paul Pacheco
35b9919d91
Revert "New Basic Example ( #985 )"
...
This reverts commit 66f7693855
.
2019-07-29 08:07:06 -05:00
Paul Pacheco
81d915eb73
perf: use value types for empty messages ( #988 )
2019-07-29 15:04:56 +02:00
Paul Pacheco
12437ba9c2
fix: don't use obsolete method
2019-07-29 08:00:03 -05:00
Paul Pacheco
633fb19f8d
perf: messages should be value types ( #987 )
2019-07-29 14:50:18 +02:00
Paul Pacheco
7c7c910a5e
perf: avoid allocation with message structs ( #939 )
...
* avoid allocation with message structs
* Use ternary operator instead of if
* Explain witchcraft
2019-07-29 14:50:09 +02:00
Paul Pacheco
b4077c1112
feat: safer and consistent writers names ( #979 )
...
* WriteUInt16
* WriteUInt16 weaver
* WriteUInt32
* WriteUInt64
* WriteByte
* WriteSbyte
* WriteChar
* WriteBoolean
* WriteInt16
* WriteInt32
* WriteInt64
* WriteDouble
* WriteDecimal
* WriteString
* WriteBytes
* WriteVector2
* WriteVector3
* WriteVector4
* WriteVector2Int
* WriteVector3Int
* WriteColor
* WriteColor32
* WriteQuaternion
* WritePlane
* WriteRay
* WriteMatrix4x4
* WriteGuid
* WriteNetworkIdentity
* WriteTransform
* WriteGameObject
* Keep consistent line breaks
* add new define so asset maintainers can tell if the new methods are available
2019-07-29 14:44:08 +02:00
vis2k
abf06df25d
fix: Telepathy updated to latest version. connectionId counter is properly reset after stopping server.
2019-07-29 14:36:18 +02:00
MrGadget
66f7693855
New Basic Example ( #985 )
2019-07-28 18:13:38 -05:00
Paul Pacheco
eb4c00f8e4
Use array initializer
2019-07-24 20:09:10 -05:00
Paul Pacheco
60dcd2acdc
Syntax
2019-07-24 18:37:39 -05:00
MrGadget
45b711804b
fix: Don't increment counter in Awake ( #971 )
...
Doing it in Awake and also before assigning to clients skips connection ID 1.
2019-07-21 00:13:01 +02:00
MrGadget
7fecfe3065
ForceReload is always true, and the only use of it requred it to be false, so it's no longer needed. ( #970 )
2019-07-20 09:22:56 +02:00
MrGadget
3fb0337f8c
Lobby example update ( #969 )
...
* Updated Lobby Example
* Renamed cube to visor
* Missing files from PR 957
* Code Cleanup
2019-07-19 23:40:25 -05:00
MrGadget
43d4c7ecd7
Additive example update ( #968 )
...
* Updated Additive Example
* Renamed cube to visor
* Code Cleanup
2019-07-19 23:39:50 -05:00
Paul Pacheco
64a046803a
fix: do not accumulate changes if there are no observers fixes #963 ( #964 )
...
* fix: do not accumulate changes if there are no observers #963
* Update NetworkIdentity.cs
2019-07-17 14:59:46 +02:00
vis2k
310556c430
TelepathyTransport.ServerGetClientAddress: catch IL2CPP bug to at least continue to run
2019-07-17 12:32:03 +02:00
vis2k
22931fcd84
fix: Telepathy forgot to set socket options for accepted clients on the server
2019-07-14 11:13:51 +02:00
MrGadget
b0b57a23cc
Lobby example update ( #960 )
...
* Updated Lobby Example
* Renamed cube to visor
* Missing files from PR 957
2019-07-12 09:04:30 +02:00
MrGadget
7f966c9afb
Updated Additive Example ( #956 )
...
* Updated Additive Example
* Renamed cube to visor
2019-07-11 14:54:38 +02:00
MrGadget
7490094904
Updated Lobby Example ( #957 )
...
* Updated Lobby Example
* Renamed cube to visor
2019-07-11 14:54:25 +02:00
Paul Pacheco
47ecdb58c3
Use NetworkWriterPool in Message packing ( #958 )
2019-07-11 07:23:16 -05:00
Paul Pacheco
454c6ade47
Don't swallow stack trace
2019-07-03 07:38:46 -05:00
Paul Pacheco
97432169ea
perf: Recycle argument writer to avoid allocations ( #945 )
...
* Recycle argument writer
* Get a pooled networkwriter for argumens
* Use pool, not static variable
* Use explicit type
* Remove blank space
* Recycle writer in the weaver where it is allocated
2019-07-02 18:39:18 +02:00
Paul Pacheco
d2381ce892
perf: remove allocations during syncvar sync ( #946 )
2019-07-01 23:12:02 +02:00
Florimondable
3ee87fe7de
Initialize Unity event objects in Transport. ( #940 )
2019-07-01 09:54:47 +02:00
vis2k
d6389e68be
fix: properly stop client and server in OnApplicationQuit so that clients still get a chance to send then 'quit' packet instead of just timing out. Also fixes a bug where OnStopServer/OnStopClient were not called when stopping the Editor. ( #936 )
2019-06-28 19:22:40 +02:00
MichalPetryka
7181cd9ca1
perf: use 0 for null strings ( #926 )
...
* Use 0 for null strings
* Fix test
* No need for special case for ""
* No need for special case for ""
* Update Assets/Mirror/Runtime/NetworkReader.cs
Co-Authored-By: Paul Pacheco <paulpach@gmail.com>
2019-06-27 08:01:57 -05:00
vis2k
6bc65d500a
Telepathy.dll dummy file to overwrite old Telepathy.dll for people that update via Asset Store
2019-06-25 18:39:09 +02:00
MichalPetryka
21ca49d1be
perf: Use 0 for null byte arrays ( #925 )
...
* Use 0 for null byte arrays
* Update Assets/Mirror/Runtime/NetworkWriter.cs
Co-Authored-By: Paul Pacheco <paulpach@gmail.com>
* Update comments
* Update Assets/Mirror/Runtime/NetworkReader.cs
Co-Authored-By: Paul Pacheco <paulpach@gmail.com>
* Update Assets/Mirror/Runtime/NetworkReader.cs
Co-Authored-By: Paul Pacheco <paulpach@gmail.com>
2019-06-25 13:53:43 +02:00
vis2k
5f05e2fd02
Don't always log scene index hash message on start anymore. SceneIds work fine now.
2019-06-25 11:03:24 +02:00
vis2k
8a190bfd17
fix: TelepathyTransport.ToString UWP exception
2019-06-25 10:34:26 +02:00
vis2k
c4a18cd8a4
Telepathy source drop-in for easier debugging
2019-06-24 17:49:01 +02:00
vis2k
315508dec0
NetworkWriterPool meta file
2019-06-24 17:47:52 +02:00
Paul Pacheco
f5e93180a1
feat: network writer pool to avoid expensive allocations ( #928 )
2019-06-24 14:49:42 +02:00
Paul Pacheco
ced36906bc
perf: return the contents of the writer as an array segment ( #916 )
...
* Return the contents of the writer as an array segment
* Use a safer ToArraySegment method and add some comments
* refactor: for readability and debuggability
* Test that ToArraySegment works
* Updated with master
* Update NetworkWriter.cs
2019-06-23 21:19:48 +02:00
Paul Pacheco
7b3e82a1fc
perf: remove BinaryWriter, it allocates like crazy ( #929 )
...
* perf: remove BinaryWriter, it allocates like crazy
* useless comment
* Update NetworkWriter.cs
2019-06-23 20:43:39 +02:00