userDaniel Pcancel

1,701 Commits over 427 Days - 0.17cph!

42 Days Ago
Update: Test.ServerOcclusion - update stale cases with new ones This was much more painful than expected. Need to update the perf test next Tests: ran the unit tests
42 Days Ago
Bugfix: replacing old occlusion cache to unblock unit tests All expect-true tests are currently failing - need updating the query locations Tests: ran the Server Occlusion tests
42 Days Ago
Update: batched OcclusionLineOfSight now handles sending updates internally (like serial) - driven by OcclusionLineOfSightNoBroadcast - this thing we can test Don't like this encapsulation, but it should prevent issues like missing foundPairs. Tests: none, trivial change
43 Days Ago
Bugfix: player replication no longer stutters with UsePlayerUpdateJobs 2 Was iterating over wrong occlusion results - need to refactor to avoid future confusion Tests: 2p session on Craggy with UsePlayerUpdateJobs 2
43 Days Ago
Bugfix: rewrite batched OcclusionLineOfSight to supports sleepers Tests: 2p session on Craggy with UsePlayerUpdateJobs 2, disconnected multiple times - no more out-of-bounds exceptions
43 Days Ago
Update: BasePlayer.NetworkPositionTick now uses batched server occlusion Tests: 2p session on Craggy with UsePlayerUpdateJobs 0 and 2. Saw a bug on disconnect, will fix next.
43 Days Ago
Update: moving occlusion notification logic to it's own utility func Realized I'll need it for the task-enabled SendNetworkPositions Tests: none, trivial change
43 Days Ago
Update: change OcclusionLineOfSight interface to use (int, int) instead if deconstructed pairs - Also fixed invalid allocator use for a native list - TempJob was wastefull In the middle of writing SendNetworkPositions, and realized previous interface could be error prone Tests: none, trivial change
43 Days Ago
Update: starting work on batched BasePlayer.NetworkPositionTick Doesn't do any batching/tasks yet, just preliminary clean of non-player logic. Goal is to batch underlying server occlusion Tests: 2p session on craggy with UsePlayerUpdateJobs 2
43 Days Ago
Update: Refactor FinalizeTickParallel to isolate ApplyChanges logic Should help with profiling, and sets up for batched BasePlayer.NetworkPositionTick Tests: local 2 palyer session on craggy with UsePlayerUpdateJobs 1 and 2
43 Days Ago
Bugfix: ensure we update player eyes before we kick off various jobs Previously this would cause cached state to have stale eye positions. Tests: none, trivial change
44 Days Ago
Update: refactor ServerUpdateParallel to only contain high-level calls This should improve profiling view by clearly delineating logic Tests: 2p session on craggy with UsePlayerUpdateJobs 2
44 Days Ago
Clean: mark with comments when each player cache is last updated Tests: none, trivial change
44 Days Ago
Update: remove CachedState.IsValid - it was misleading and unnecessary Reimplemented logic that used to rely it to instead rely on nullable values Tests: editor compiles
44 Days Ago
Update: move CachedStates growth to ServerUpdateParallel - also using zeroed memory to have sensible defaults for users that haven't yet being processed Makes it clearer that they are in sync with playerCache Tests: none, trivial change
44 Days Ago
Merge: from main Tests: editor compiles
44 Days Ago
▉▅▉▇▇: █▍▉▍ ▌▌▅▇▌▆▇▅▇▌▆_▄▉▊▉▅ - ▍▌▆▇▅▋: ▍▋▋▋▄▅▋▇▆▌█▅▌▉▉▉▍▅█ ▅ ▍█▍ ▆▍▉▄ ▆█▊▊▆▌▄▍█▊ ▅▅▅█▄ ▉▇▊█▋: ▄▉▇▍▅ ▌▍▌█ ▌▉▋▉ ▅▉▍▉▅▆▆▌▉▅▍▌▍▇▋▍▌▉▉ ▉, ▋▄ ▊▄▋▉▇▌▅ ▉▊ ▅ ▇▉▍▌▅▍ ▅█ ▅▍█▇█▄▅▉
44 Days Ago
▍▌▌▅▍▊: ▉▄▌ █▅▇ ▋▇▉▊▋▋▋▌▍▆ █▅▄▇▍ ▊▄▇█ ▊▇▋█▄▇▄▅▊▅▅▉▋▍▋▆▍▄▇ ▄█▋ ▋▄▋▇▊▄▊ ▊▌▍▉▄: █▄▍▍█ ▇▊▉▅▋▋▋ ▋▅▇▄ ▄▊▋▇▍▍▊▊▋▊▊▍▉▄▆▅▄▋█ ▊, ▆▍▉▄▇ ▍▊▍▆▍▊ █▋▉ ▉ ▆▆▆▅▉█, ▆▆▌ ▊▋▄ ▄█▊▋▍▋▊ ▌▄ ▄▋▍ ▄▆▊█
44 Days Ago
Merge: from main
44 Days Ago
Optim: use cached pos to avoid transform access Tests: none, trivial change
44 Days Ago
Update: UsePlayerUpdateJobs server var is now a mode, not a bool - rolled in UsePlayerTasks Will make it easier to test new modes in the future and avoid weird servervar dependency mess Tests: compiles in editor
44 Days Ago
Bugfix: cache missing state player analytics when jobs are disabled Tests: none, trivial change
44 Days Ago
Update: take world pos out of CacheState This partially fixes cached state missing for players whos ticks weren't processed yet. Tests: 2p local session on craggy
45 Days Ago
Merge: from main Tests: none
45 Days Ago
Merge: from occlusion_rework - UsePlayerTasks runs occlusion checks using batched burst jobs - UsePlayerTasks - any visibility changes are processed using tasks distributed amongst worker threads - UsePlayerUpdateJobs - more use of CachedState Tests: a bunch of local 2 player sessions on Craggy
45 Days Ago
Update: move serial server occlusion update code to the relevant partial class file - Use ReadOnly interface for lists to avoid read-write access violations Tests: compiles in editor
45 Days Ago
Optim: avoid player's world transform querying and use cached pos instead Hoping it'll help reduce the 50% self time of ServerUpdateParallel on 200pop server Tests: none, trivial change
45 Days Ago
Optim: OcclusionCache store sorted pairs - Don't store SubGrids in the cache, just their indices - saves a bit of mem Allows to double the effective capacity of the cache Tests: 2 player session in editor with occlusion behind the hill
45 Days Ago
Clean: Move all of the player server occlusion logic to it's own file - Removed now resolved TODOs Now that it has both task and serial modes of operation, it takes too much space in server partition file. Tests: compiles in CLIENT+SERVER editor
45 Days Ago
Update: use ConcurrentDictionary for BasePlayer.lastPlayerVisibility Trying the simplest approach first, lets see how it scales on release pop. Tests: 2 player local session with occlusion culling de-/spawning player
45 Days Ago
Update: early out from running occlusion checks if no players to process Tests: none, trivial change
45 Days Ago
Bugfix: use cached network time of one player to avoid worker thread calls to script api Tests: none, one more to fix
45 Days Ago
Clean: wrap Task.Wait into a named lambda This will make it appear in server snapshots Tests: none, trivial change
45 Days Ago
Update: main thread now participates in occlusion task processing Tests: none, as I need to adapt more code to make it friendly to running on workers
48 Days Ago
Update: work-in-progress task splitting for server's occlusion checks Rewrote the high level code to be able to run PlayerFound/Lost in batches on worker threads - need to confirm if it's legal Tests: none
48 Days Ago
Update: reimplement how occlusion treats overrides - this is a reimplementation of 118512 Allows to further simplify OcclusionLineOfSight code - enables removal of OcclusionPlayerFound/Lost Tests: on craggy with 2 players, ran behind the hill, disappeared, turned on occlusion override - player appeared
48 Days Ago
Update: plug in batched occlusion logic - fix early-disposed container Need to figure out how to factor out the OnPlayerFound/Lost, but getting close Tests: 2p on craggy in editor - walked behind the mountain and disappeared
48 Days Ago
Update: plug in new batched server occlusion job Tests: none, need to hook up the calling code
48 Days Ago
Update: extract algorithm from ServerOcclusionJobs.CalculatePathBetweenGridsJob Tests: inspected asssembly
48 Days Ago
Update: batched OcclusionLineOfsight skeleton Tests: none, not engaged yet
48 Days Ago
Update: refactor server occlusion job to take out grid definition Prep for adding a batch version Tests: on craggy in editor with 2 players, ran behind the hill and got despawned
49 Days Ago
Update: refactor occlusion loop to be friendly for batching Need to simplify BasePlayer.OcclusionLineOfSight before I can start working on batched job Tests: none, no functional changes for now
49 Days Ago
UPdate: move serverocclusion caching logic a level higher Goal is to get rid of OcclusionPlayerFound/Lost in the query, so this is first baby step Tests: none, trivial change
49 Days Ago
Update: Don't step players that have been kicked by antihack Tests: none, trivial change
49 Days Ago
Bugfix: avoid scripting API when sending EventRecords from RunAnalyticsJob task - EventRecord.New now can be created on worker threads Tests: hacked code to enable analytics in editor, then ran around on craggy
49 Days Ago
Bugfix: avoid scripting API in EACServer.LogPlayerTick - cache more of player state on main thread Tests: hacked code to run EAC in editor and activated player tasks - no more exceptions
49 Days Ago
Update: add "Server.UsePlayerTasks" feature switch - also submitting updated ResetStaticFields Tests: turned it on and off in the editor and validated in profiler
50 Days Ago
Update: experimenting with offloading tick analytics for players to worker thread In editor delays are pretty small, should win us 0.7ms on 200pop server, but tasks library is al-locating cosntantly - still investigating alternatives. Tests: ran around in editor on craggy, checked profiler
50 Days Ago
Clean: dead variable Tests: none, trivial change
50 Days Ago
Clean: fix code formatting Tests: none, trivial change