Skip to content

Conversation

@imerr
Copy link
Contributor

@imerr imerr commented Mar 6, 2024

Optional native plugin that takes over the bulk of the runtime work: the encryption and decryption of data. The handshake is still done in C#.
Native plugin currently lives here: https://github.com/imerr/RustyMirrorEncryption can be moved into the mirror org if we're happy
There is builds for loads of architectures, including: Windows 32/64bit, Linux 32/64bit/ARM, Android, Mac 64bit/ARM, IOS ARM, Android ARM64/ARMv7
I've only tested the windows 64bit build so far.. so good luck! Might need some tweaks to the libs in-editor too (the windows one unity wanted to load the 32bit one)
Very much WIP

@imerr imerr force-pushed the feat/encryption-native branch from aefa839 to 6778732 Compare March 7, 2024 12:03
imerr added 3 commits March 18, 2024 13:43
fix import flags

Show native state in ToString for NM HUD

Old unity support
@imerr imerr force-pushed the feat/encryption-native branch from 6778732 to c529ef5 Compare March 18, 2024 14:05
@imerr
Copy link
Contributor Author

imerr commented Mar 24, 2024

213byte rpc * 50 rpcs per frame * 60 fps = 639.000 bytes/s/client * 100 clients = ~63.9MB/s = ~61MiB/s
Native:
2024-03-23_11-38-03_TrND70QxHA
BouncyCastle:
2024-03-23_11-44-03_Uxym3nSbQA

@imerr
Copy link
Contributor Author

imerr commented Mar 24, 2024

Client receive (slightly inconsistent data rates due to not locking server fps):
Native:
2024-03-23_11-48-04_S0nnlehCcl
BouncyCastle:
2024-03-23_11-46-47_d1rNvpzWfb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants