userJake_Richcancel
branchrust_reboot/main/full_server_demoscancel

50 Commits over 29 Days - 0.07cph!

19 Days Ago
merge from main -> full_server_demos
26 Days Ago
merge simple_upload -> full_server_demos
29 Days Ago
merge main -> full_server_demos network++
29 Days Ago
merge packet_ordering_2 -> full_server_demos
31 Days Ago
Merge from main -> full_server_demos
39 Days Ago
Merge from main -> full_server_demos
40 Days Ago
Simplify bandwidth calculations Try to upload demo in 5m and any backlogged demos within 15m
40 Days Ago
Add a few retries when uploading demos
40 Days Ago
Easier to fix merge conflicts manually
40 Days Ago
Merge fix_recording_disconnects -> full_server_demos
42 Days Ago
Add upload queue for demos Rate limit the uploads to avoid saturating server's bandwidth
43 Days Ago
Also include changeset & hostname for debugging
43 Days Ago
Include network protocol in demo header
43 Days Ago
Merge from main -> full_server_demos
45 Days Ago
Merge from main -> full_server_demos
47 Days Ago
Default to 8MB transfer size when benchmarking demo upload Allow transfer size to be overwritten
47 Days Ago
Record disconnects to the demo thread
47 Days Ago
Merge from main -> full_server_demos
51 Days Ago
Merge from main -> full_server_demos
51 Days Ago
Don't upload demos when `upload_demos` is set false or when `upload_url` is unset
51 Days Ago
Rename variables inside `FullServerDemos.cs` to be as readable as possible
51 Days Ago
Add `upload_demos` convar to turn off uploading and keep it on disk
51 Days Ago
Missed one file for CS0197
51 Days Ago
Fix CS0197 warnings - change static method `NetRead.Free( ref NetRead )` to `NetRead.RemoveReference()` - move `Interlocked.Increment()` into `NetRead.AddReference()`
51 Days Ago
Fix the server recording inbound packets twice: once from decryption thread & once on the main thread
51 Days Ago
Don't split up PacketId and the rest of the packet
51 Days Ago
Cleanup variable names Fix writing packet length directly to the FileStream instead of the Writer.BaseStream
51 Days Ago
Cleanup convars
51 Days Ago
Improve benchmark demo command
52 Days Ago
Merge from main -> full_server_demos
52 Days Ago
Add `benchmark_demo_upload` to ensure we don't overload the game server when uploading blobs
53 Days Ago
Merge from main -> full_server_demos
53 Days Ago
Don't record raknet packets used to establish a connection
53 Days Ago
Compile fix
54 Days Ago
Change default flush interval from 1 min -> 5 min
54 Days Ago
Store session start timestamp (when demo recording started) in header Use connection Guid instead of dictionary in player lookup (to avoid players reconnecting causing issues) - change DemoPlayerInfo.SteamId -> Guid (ulong technically) Change path to `server-demos/{serverid}/sessions/{sessionid}/{chunkid}.sdem` (to make it easier to navigate in azure) Fix compressedSize in demo header being incorrect (FileStream.Length > FileStream.Position)
54 Days Ago
Switch from `demo_server_id` -> `server_id` convar - save across restarts - set server_id on startup if not set Remove `upload_token` convar, rely on putting SAS token in upload endpoint for now (can polish later once we figure out how we want to refresh tokens) Fix hardcoded "test" container and use the container from the SAS url
54 Days Ago
Merge from main -> full_server_demos
54 Days Ago
Refactor into multiple .cs files as the code has grown
54 Days Ago
Delete demos off disk past a certain quota to avoid consuming entire disk during upload failure Add `server_demo_disk_space_gb` (default 30GB)
54 Days Ago
Allow server demos to be turned on and off at runtime
58 Days Ago
merge packet_ordering -> full_server_demos
58 Days Ago
Cleanup upload code a bit
59 Days Ago
Store chunkId in header file
60 Days Ago
Merge from main -> full_server_demos
2 Months Ago
Enqueue packets for demo from network threads instead of main thread
2 Months Ago
Change header class from fields -> properties (for System.Text.Json)
2 Months Ago
Merge upload -> full_server_demos
2 Months Ago
Expose variables for server demos as convar `full_server_demo` convar will only be applied on startup but can be changed at runtime to apply next restart
2 Months Ago
Moving from stash to branch* When `ServerDemo` convar is enabled on startup, the server will recordall network traffic on the server as one big demo file Packets sent to multiple players are only recorded once (store list of players sent to) Inbound & outbound data is stored in the order it was processed on the server The demo is written to disk on a separate thread to make performance impact minimal Demo is split into 1 minute chunks for testing (will be 5 minutes later) Each demo chunk is given a unique filename with the .sdem extension (represents .serverdemo) A json "header file" is written with each demo chunk wiht information on how the demo should be loaded (list of players, number of packets, time span, etc) Changed pooling of NetRead & NetWrite to use reference counting to account for another thread needing to finish processing before they are pooled