branchrust_reboot/main/syncvarscancel

77 Commits over 120 Days - 0.03cph!

Add Autosave system. SyncVars marked as Autosave will automatically be injected into Save/Load methods so no need to write protobufs.
Yesterday
Updated source generator to support event generation. Ensured our attribute matches this More tests in the legacy shelter
2 Days Ago
Better weaver symbol logic (to prepare for being built) Downgraded code analysis to 3.8 so it doesnt explode hot reload
2 Days Ago
Safer SyncVar Implementation: Rosyln Source Generator creates: Weaver ID table (managed to make it free), read, write methods and backing fields. Run Weaving step based on the result of source generator, only bother hooking setter IL to run code created during the source generator phase Add source generator dependencies
3 Days Ago
main -> syncvars
4 Days Ago
More test code
4 Days Ago
main -> syncvars
4 Days Ago
Fix strings not parsing correctly in the receive code. Net read strings take an argument (needs to be supported on our end)
4 Days Ago
Properly handle error messages Display more information when something goes wrong Show postive/negative error logs as green and red
4 Days Ago
First set of code cleanup on the new weaving solution Split everything off into smaller areas Injection simplification Seperate build/editor dependency logic
4 Days Ago
SyncVars fully working with weaving. Fixed incorrect stack for WriteSyncVar.
4 Days Ago
Fix malformed WriteSyncVar Setter plumbed up to the correct entry logic for queueing/sending SyncVars
4 Days Ago
Find queue/send method properly (search parent class) Don't pass byte - cant append that OpCode unless its an int
4 Days Ago
Use Cecil for SyncVar weaving. Boostrap weaving on domain reload Properly map depdency paths Include unity modules Better timing to avoid race conditions
4 Days Ago
Attempts to better filter what files are pushed for weaving Better Diagnostics Cleanup GenerateResult (Just generate pe and pdb output streams in method before writing to them)
5 Days Ago
Scrap Source Generator - Try IL Weaving instead
5 Days Ago
Moved to new project -> Rust.SourceGenerators.SyncVar Fix legacy shelter mini example
6 Days Ago
main -> syncvars
6 Days Ago
Throw error if greater > 31 packed SyncVars New Implementation is done! 🎉
6 Days Ago
Fixed SourceGenerator not throwing errors properly when looking at field name (invalid string/uppercase starting string)
6 Days Ago
More code cleanup
6 Days Ago
Add support for Pack=True/False. Unpacked SyncVars are sent immediately when changed.
6 Days Ago
Removed old SyncVar implementation
6 Days Ago
Successful queue, sending and receiving on new code generator implementation. Stripped out another overhead byte not needed with our new solution. Generate byte table inside code generator. Developer > 2 logging support. Safety with property setter on the client (throw an exception). Few more Diagnostics error throws (class > 256 syncvars, Base Class == BaseEntity). Try & Catch on Syncvar replicate. Time to fully rip out the old solution.
7 Days Ago
Missed Files - Code Analysis Dependencies
7 Days Ago
Roslyn Compiler setup for SyncVars working (auto property generation) Not adding to queue etc yet. Seperated .csproj to seperate directory since Unity keeps forcing .NET Framework
8 Days Ago
Setup syntax receiver
8 Days Ago
Implemented Microsoft.CodeAnalysis via plugins instead (fetched nuget dlls from external project)
8 Days Ago
Include Microsoft.CodeAnalysis Initial Source Generator setup
8 Days Ago
Give queue back to the pool if its empty (after sending)
8 Days Ago
Fixed bitmask read using too small a bit count
8 Days Ago
Code cleanup
8 Days Ago
Remove client -> server syncvars
8 Days Ago
main -> syncvars
15 Days Ago
Generation fixes
15 Days Ago
Allow sending sync vars to specific players Correct send info from client -> server
15 Days Ago
Turn packing off by default (this is so the server can send packets to different endpoints, eg player x, or y)
15 Days Ago
Protobuf support for sync vars
15 Days Ago
Throw error if too many sync vars are defined
15 Days Ago
Developer logging and disconnect/kick for incorrect replications on both client/server
15 Days Ago
Some fixes for client authoritative queue packing
15 Days Ago
Seperate client and server packing queues due to listen servers messing everything up Client now uses packed sending Cleanup
15 Days Ago
Batching system when sending packed sync vars. If all packed syncvars require a larger bitmask then split it over multiple send cycles
15 Days Ago
Swap syncvar system over to using bytes rather than ushorts. We will never reach max 255 per entity as the current queue limit is 32 (due to the bitmask), even if we split the queue its fine
15 Days Ago
Server receive packed sync var methods
15 Days Ago
main ➡️ syncvars
17 Days Ago
Ensure child classes of SyncVar are picked up in SyncVar Codegen Initial profiling pass. Virtually no memory overhead for send/receive, and very little for the queue (pooled)
17 Days Ago
Fix non packed syncvars attempting to use the cheap int ids used with regular packed sync vars (will try and incorporate this before release)
17 Days Ago
Locally cache a reference to queue sending action for each entity that needs it - use that for invoke repeating and cancel invoke
17 Days Ago
Cleanup start/stop queue methods Return hashset to the pool on stop