userDaniel Pcancel
reporust_rebootcancel

2,686 Commits over 669 Days - 0.17cph!

15 Days Ago
Optim: rewrite Pool to use ConcurrentBag(many mutexes) instead of single mutex Fails unit tests, but not going to focus on fixing it just yet - want to make it faster first. ST avg: 0.88781ms MT avg: 3.1281ms Tests: ran perf tests
15 Days Ago
Update(tests): add TestMTPressure unit test Wrote it cause my ConcurrentBag based pool is misbehaving Tests: ran new unit test
15 Days Ago
Update(tests): pool now has a runtime switch to disable editor-only safety logic, so that perf is more apples-to-apples ST avg: 1.0358ms MT avg: 13.6264ms Tests: ran perf tests
16 Days Ago
Update(tests): add simple pool perf tests (ST & MT) ST avg: 1.29925ms for 10k alloc-deallocs MT avg: 21.16116ms for 1k alloc-deallocs per task, 32 tasks Tests: ran tests
16 Days Ago
Update: move Utils Measure routines to Facepunch.System.Tests - also make it auto-referenced Tests: compiles
16 Days Ago
Merge: from sanitize_specatating_players - Bugfix for NRE spam when spectate mods don't correctly setup spectating Tests: none, trivial change
16 Days Ago
Bugfix: ServerOcclusion - add defensive checks for suspected spectate mods The mods should be fixed, but at least it won't put servers in a weird state. Tests: none, trivial change
16 Days Ago
▆ ▍▇▆▅▌▋ ▅▌▍▄ ▄▍▅▇▇▍▌▉██▇▄▋▊▅▄▍▄▄█▇▍▆▍▋█▌▌▋▆▋▊▍▋▇▋▌▊ ▅▆▌▊▆ ▇▌▍▉▊▍▌▋▄▋▉▊▅ ▊▅▊▌▄ ▄▌▅▋ ▊▅▄▆█▅▆▍▋▉▊▊ ▍▅▋▍▆▌▍█▊ ▍▇▄▆▄ ▊▍▆▆▌▌▄▉▅▌▉▇▉▊▉ ▄▍▍▍█ ▋▄▌ ▍▌▅▌▋▄ ▋▋ ▍▍██▆▋▉ ▊▌▉ █▍▍█▌▆▇ ▍▊▍█▄▋ ▇▊ ▅▆█▋▄▇█▇▄▉▇▅▅▆▇█ ▆ ▅▌ ▆▅▌▉ ▍▌█▋█▌▆
16 Days Ago
▋ ▊▊▄▊▍▆▊ ▋▊▆▆▆▊ ▊▋▉▆▉▄ ▇▅▌█▉█▅▇ ▌▆▄▄ ▉ ▆▊▊ ▊▅▊ ▆██▄▋▆▉▇▌▉▍▅█▍▄▅▉▋▆▉▅▋▍▋█▉▅▋▄▍▍▅▇▉▇▉▍▄▄▆▄▅▇▋▌ ▄▊▅█▅ ▄▌█ ▊██▉▊▊ ▆▄ ▋▇▌▉▌▌
21 Days Ago
Merge: from objectworkqueue_valuetype_allocs - Optim: eliminate allocs from value types used in ObjectWorkQueue. Needs manual changes to be eneabled Tests: none, trivial change. Checked IL
22 Days Ago
Optim: Apply IsValidToRun for value-type ObjectWorkQueues - overrode BoatAIWorkQueue, UpdateSurroundingsQueue, UpdateMissionValidStateWorkQueue Tests: none, checked IL
22 Days Ago
Optim: use virtual IsValidToRun to avoid boxing allocs in ObjectWorkQueue.RunQueue Sad-noises-about-C#-generics, couldn't figure how to automate it Tests: none, inspected IL, no box instructions generated
23 Days Ago
Merge: from createcorpse_triggerparent_nre - Bugfix for TriggerParent not cleaning themselves up if a corpse forces it's way just before volume is destroyed Tests: ran auto tests
23 Days Ago
Bugfix: Ensure TriggerParent properly tracks forced corpse Corpses forcefully inherit trigger volumes, which doesn't properly initialize internal contents, leading to skipped cleanup when volume is destroyed. Rare bug in the wild, but consistent in auto tests. Tests: ran all PlayerMountedToArmoredVehicle_PlayerNotTargeted auto tests
23 Days Ago
Merge: from stableobjectarray_remove_dirty - Optim: maintain synchronized order of dependent data as we remove from StableObjectCache Tests: unit tests and a couple 2p sessions on Craggy with disconnects, shooting
23 Days Ago
Update: codegen Tests: none
23 Days Ago
Bugfix: fix invalid index assigned to a projectile on projectile removal from cache Copy paste mistake, happy we got unit tests Tests: ran ProjectileTests.TestConsistency - it passes
23 Days Ago
Merge: from main
23 Days Ago
Clean: consolidate player-related state cache growth to AddToPlayerCache Tests: compiles
23 Days Ago
Clean: make the code clearer around maintianing packed order Using better names for vars, easier to understand ifs and a safety assert Tests: compiles
23 Days Ago
Update(tests): add TestMovePlayer - bugfix for missing to copy an extra tick/reset point in TickInterpolatorCache.MovePlayer - added more docs to StableObjectArray Tests: ran new unit test
23 Days Ago
Optim: replace BasePlayer.SparsePlayers with PlayerCache.Objects now that indices always match packed order Tests: 2p on Craggy with disconnects of 2nd player
24 Days Ago
Update: repack player cache and dependent state as players are removed Should allow us to clean up a bit of indirection and optimize things further Tests: 2p session on Craggy with disconnects and being kicked for flying under terrain
24 Days Ago
Clean: projectiles now internally iterate over their cache rather than instance list Tests: unit tests, 2p on craggy
24 Days Ago
Update: ensure projectile stable indices are packed This simplifies code and opens up the door for better cache utilisation & simd processing, but currently savings are on the noise level Tests: unit tests + shot around player with 2 clients connected
24 Days Ago
Clean: cache span from ActiveTriggers.Objects Tests: none, trivial change
24 Days Ago
Merge: from main
24 Days Ago
Merge: from terrainkick_nre_fix - Bugfix for NREs caused by kicking players(invalidating iterators) while looping over StableObjectArray Tests: kicked self through clipping in terrain - no NREs
24 Days Ago
Merge: from main
24 Days Ago
Optim: Avoid double indirection when looking up active triggers - enabled by use of invalidating RemoveAtSwapback TriggerParent.StableIndex is only const during a frame, it now can change between frames Tests: built a 3-piece boat with a ladder, jumped around it
25 Days Ago
Clean: removed FilterInvalidPlayers now that I've validated that all kicks were grouped at end - cleaned up comments that pointed out kick locations Tests: none, trivial change
25 Days Ago
Bugfix: avoid NRE after kicking a player while iterating over a player cache - consolidated all kicks in ServerUpdateParallel to end of the method Tests: got kicked for terrain violations, no NRE
25 Days Ago
Update: StableObjectArray.RemoveAtSwapback can now optionally invalidate stable indices - added unit tests Should help us maintain packed state of dependent arrays - will start converting current use cases next. Tests: ran unit tests
25 Days Ago
Update: replace hardcoded constant with GamePhysics.DefaultMaxResultsPerQuery (same value) - also submitting missing meta file Tests: compiles
28 Days Ago
Merge: from fix_boat_no_sail - Bugfix for boats and vehicles getting stuck in open areas, effects not playing, building appearing slow Tests: unit and perf tests, built and sailed a boat on craggy
28 Days Ago
Bugfix: fix player boats getting stuck while sailing (and other weird bugs) - Network subscription now creates discovered cells Was caused by overly aggressive network group lazy creation. If they are created within player subscription range, player doesn't get subscribed to them automatically, which caused all kinds of issues. This'll hurt perf over time, but no worse than current perf on Release - I'll optimize this later Tests: unit tests, perf tests and built a boat and sailed across craggy
28 Days Ago
Merge: from stableobjectcache_taa_nulls - Update: Replaced StableObjectCache with StableObjectArray, updated TriggerParent, Projectiel batching and server player processing to use it - Bugfix: fix for "Adding null to TransformAccessArray" warning Tests: unit tests, 2p session on Craggy with jumping on boat, shooting, conencting-disconnecting
28 Days Ago
Merge: from main
28 Days Ago
Update(tests): add validation of StableIndexLookup to StressTest Tests: ran unit tests
28 Days Ago
Clean: delete StableObjectCache, no longer in use - fixed up const references that I missed Tests: compiles
28 Days Ago
Update: add missing NativeDisableParallelForRestriction to BasePlayerJobs.RecacheTransforms Tests: none, trivial change
28 Days Ago
Update: rewrite projectile batching to use StableObjectArray instead of StableObjectCache - internal statics are now initialized and cleaned up on client connect/disconenct (+ scripts reload) - had to sprinkle container access checks due to indirection This was the last user of StableObjectCache, will rip it out next Tests: ran unit tests, 2p craggy test with shooting (confirmed fly by effects, ricoches still happen)
28 Days Ago
Update: rewriten TriggerParent to use StableObjectArray instead of StableArrayCache - ran codegen - made DisposeInternalState run on assembly reload Tests: built a boat, jumped on off - no issues (except the boat not moving, but a separate bug)
28 Days Ago
Bugfix: ensure PlayerTransformsAccess stays in sync with PlayerCache when players are removed - also removed safety if as it's obsolete after recent change to cleanup player before shutting down the server Tests: had 2nd client connect-disconnect to me on Craggy (though technically it's not enough, I'm relying on unit test logic)
28 Days Ago
Update: StableObjectArray gets GetIndexForSyncRemove to support removing from linked collections - used it to fix TestTransformAccessArraySync Need to update actual game code since it's bugged Tests: ran unit test
28 Days Ago
Merge: from main
29 Days Ago
Update(tests): add unit test that validates StableObjectArray is in sync with TransformAccessArray Tests: ran the test - they're not, gotta fix it tomorrow
29 Days Ago
Merge: from main
29 Days Ago
Bugfix(editor): cleanup connected players before we shutdown server when stopping playing in editor Tests: started and stopped play mode
29 Days Ago
Bugfix: if shorevector caching is disabled, then make sure we generate it Prev version skipped if it found the cache files on disk even though it didn't load them Tests: booted into craggy