userDaniel Pcancel
branchrust_reboot/main/projectileweaponmod_allocscancel

5 Commits over 0 Days - ∞cph!

Just Now
Optim: avoid IEnumerable Enumerator allocation Not as generic, but saves an alloc Tests: took a snapshot while shooting
Today
Clean: ProjectileWeaponMod.Mult - use 1 as hardcoded default value They've been manually specified as 1 everywhere, seems a bit redundant Tests: compiles
Today
Optim: cache all selectors that are used in mod value aggregations Tests: got shot by a scientist. killed them with a fully modded ak
Today
Optim: reimplement projectile mod aggregators to be alloc free - added outstanding Avg, Min and Max helpers - all helpers are now generic, to support the 2 overloads we have - ripped out GetMods to avoid accidental reintroduction of allocs Still need to fix remaining dynamic callback creation Tests: got shot by a scientist
Today
Clean: simplify ProjectileWeaponMod code - get rid of 0 as default arg - mini bugfix: hook up bypassModToggles in one of Sum overloads - added non-GC mul and sum, but not plugged in yet Tests: compiles