userDaniel Pcancel

1,159 Commits over 304 Days - 0.16cph!

7 Months Ago
Optim: Recycle footsteps earlier Previously sound would get recycled when the effect would be destroyed(1.7s), but it happens much later(instead of 0.5s) Tests: Ran around on craggy - coast, grasslands, water.
7 Months Ago
Update: Log Sound stop-and-recycle requests - Log level 3 for Audio Tests: observed logs when running around (footsteps)
7 Months Ago
Update: updating audio debug output to make cross-referencing easier Tests: Rode a zipline on Craggy, was able to track the looping sound
7 Months Ago
Bugfix: Zipline stops playing audio when reaching the end This avoids trying to fade out a sound that was already recycled due GO being destroyed by server. Haven't found a better solution. Tests: on Craggy with sound pooling enabled, used the zipline twice, then noclipped out in the distance, and rode the zipline twice - no NREs. Logs also didn't show double-retire
7 Months Ago
Update: rewrote the comment Forgot to press save in VS before submitting. Tests: none, trivial change
7 Months Ago
Update: Allow use of client-side commands for GameSetup in Editor context This simplifies some testing scenarios. Tests: Boted craggy with a couple client-only debug commands - they changed as required
7 Months Ago
Update: add sound logging under audio category Tests: Ran in editor, confirmed output
7 Months Ago
Merge: from main Tests: built in editor
7 Months Ago
Merge: from soundmodulator_leak Fixing zipline NRE that my previous change caused. When not pooling, retail the modulators instead of trying to recreate them, since some scripts don't clear them properly. Tests: rode the zipline twice on Craggy, then noclipped around the island to destroy sounds, then rode the zipline twice again - no NREs
7 Months Ago
Bugfix: don't clear modulators when not pooling, fixes zipline NRE This was caused by my previous fix Tests: rode the zipline twice on Craggy, then noclipped away from the island, and rode the zipline again - no NREs
7 Months Ago
Merge: from soundmodulator_leak Fixing an assert flood on client by hiding a check behind soundpooling switch - this restores original wonky behavior. Tests: On Craggy, flew around the island with noclip to trigger spawning/despawning of sound entities - didn't see any assertions.
7 Months Ago
Bugfix: when sound pooling is disabled, don't validate if we own the removed modulator Originally, it didn't check but tried to return to the pool - this change restores this aspect. Tests: noclipped on craggy across the entire world to cause entitiy destruction - no asserts
7 Months Ago
Update: Audio RPC codegen Missed in my previous commit - support for audio.enablesoundpooling. Tests: enabled the switch at runtime, produced assertions (expected)
7 Months Ago
Update: RPC Codegen Somehow missed it despite generating previously. Tests: validated that I can dynamically switch it(even if it triggers my asserts - it's intentional)
7 Months Ago
Merge: from soundmodulator_leak Workarounds the AudioAmbience NREs by disabling pooling (audio.enablesoundpooling). Tests: on Craggy shot up 20 scientists, rode a horse, cut down trees, placed 100 barricades - no uptick in pooling of sound modulators in telemetry. No old NREs triggered.
7 Months Ago
Merge: from main Tests: none
7 Months Ago
Update: Add console switch to enable sound pooling - Disabled by default while I'm investigating ongoing NREs in the area Tests: spawned 20 scientists and killed them. Ran around placing 100 barricades. Cut down 2 trees. Telemetry showed no pooled sound modulators.
7 Months Ago
Merge: from main Tests: none
7 Months Ago
Merge: from runtime_profiling_pooling Fixes pool telemetry flood. Tests: hacked code to force run pooling telemetry - confirmed reduced telemetry.
7 Months Ago
Bugfix: Respect profiling pool flush interval for pool telemetry This caused to send ~100kb every update Tests: hacked code to run analytics
7 Months Ago
Merge: from main Tests: none
7 Months Ago
merge: from soundmodulator_leak Tests: Spawned and killed scientists in batches of 10. Previously I would get an NRE on 2nd batch, now doesn't happen after 6.
7 Months Ago
Bugfix: Don't update disabled sound players I haven't seen it happen, but it is possible that someone could add a SoundPlayer to the Manager's queue, retire it, and next frame Manager would try to update it triggering an NRE. Tests: spawned 10 scientists and killed them - no nres, audio was good
7 Months Ago
Bugfix: recycle sounds used by SoundPlayer when owner is returned to pool Tests: Killed 60 scientistnpc_patrol in batches of 10 - NRE didn't reproduce.
7 Months Ago
Merge: from main Tests: none
7 Months Ago
Merge: from main Tests: built all modes, tried to repro 2 previous known bugs - didn't happen.
7 Months Ago
Merge: from main Tests: none
8 Months Ago
Optim: Send trees in batches over multiple frames to avoid spike on player connection This is experimental, but it seems stable initially. On 4.5k procgen world from a save it took 90ms(very rough numbers, including client-side spawning overhead) in total to send all trees, but each frame 1 player took on average 0.2ms to gather & send data. Also need to fix a bunch of bugs Tests: Ran craggy in local editor session - no exceptions.
8 Months Ago
Merge: from main Tests: built all modes in editor
8 Months Ago
Merge: from pool_container_telem Tests: took telem info from craggy, procgen 4.5k and saved procgen map. Built all modes in editor. Built standalone server exe.
8 Months Ago
Buildfix: properly exclude command from non-editor builds Tests: built all modes in editor. Built standalone server.
8 Months Ago
Update: added editor-only print_memory_overhead cmd - Marked that it gives estimates, not accurate results Tests: ran on craggy - got simlar results to print_memory
8 Months Ago
Update: print extra mem held by containers in Pool Tests: took a couple snapshots on craggy, fresh 4.5k procgen + 4.5k procgen save
8 Months Ago
Update: Pool can track container capacity memory overhead - Implemented as an editor-only feature to avoid adding overhead in release I needed to confirm that we don't keep around giant lists/buffers in the pool. Tests: entered play mode in editor
8 Months Ago
Clean: replacing obsolete Pool api usage Tests: none, trivial change
8 Months Ago
Merge: from /main/soundmodulator_leak Tests: spawned car_2mod_01, drove around - pool telemetry stayed stable, audio was good.
8 Months Ago
Merge: from main Tests: built all modes in editor
8 Months Ago
Optim: lazy-allocate Sound Modulator lists - Added an assert to trigger when we try to remove a modulator we don't own Noticed that we have 3 modulators on average per 4 lists of modulators, so we can save 1-3 lists per sound and recycle better. Tests: When driving around, got max 42 SoundModulation instances with 66 lists (instead of 168 previously)
8 Months Ago
Update: don't expose modulators outside of SoundModulation - Changed printEngineSounds cmd to update more detialed info while removing redundant info - Simplified checks since we can now guarantee that our object is safe by construction. Tests: drove around in a car and checked the output in console.
8 Months Ago
Bugfix: Cleanup leaking Sound modulators - Sound now gets notified when it gets retired - Moved cleanup from Init to Retire and added safety asserts to Init - Recycle more of SoundModulation state (revealed that we have more storage than modulators) Tests: Ran around on Craggy, gathered resources, smashed a tree, crushed myself with a car by accident, drove around, swam - sound was good.
8 Months Ago
Merge: from /main/clean_dead_code Tests: upgraded half wall - it worked
8 Months Ago
Clean: removing code marked for deletion since 2023 Tests: upgraded half-walls - it worked
8 Months Ago
Merge: from main Tests: none, no conflicts
8 Months Ago
Optim: Recycle a list when paying for placement Tests: none, trivial change
8 Months Ago
Optim: Avoid transient allocations for GetReloadMenu This is more like a janitorial fixup rather than anything significant. Not recycling GameMenu.Options list because it's a struct, and we don't have a good strategy of shrinking containers in the pool yet. Tests: Changed ammo for AK via radial menu
8 Months Ago
Update: reset radioactivity when recycling Items Although Item pooling is not live on this branch, instead of going through merge overhead I'm just patching it directly here. Tests: none, trivial change
8 Months Ago
Optim: Reduce allocations when running reloading logic on the server - Added non-allocating singular IAmmoContainer.FindX methods We've got a bunch of places where we are only interested in result but try to gather all. Tests: Built all modes in editor. In local session, shot a couple mags with different ammo types. Explicitly switched ammo type via radial menu, and implicitly via reload-on-empty.
8 Months Ago
Update: Getting rid of allocating PlayerInventory.AllItems - Previous AllItemsNoAlloc is now new GetAllItems - Added PlayerInventory.Contains Tests: none, trivial changes
8 Months Ago
Update: List<Item> now use Free instead of FreeUnmanaged. - Amortized a couple consecutive push calls Need to do the same for ItemContainer. Tests: Built all modes in editor. No runtime tests as it's trivial changes.
8 Months Ago
Merge: from main Tests: built all modes in editor