branchrust_reboot/main/muzzle_flash_optimisationscancel

2 Commits over 0 Days - Infinitycph!

12 Minutes Ago
Dont spawn muzzle flash for distance gunshots (I was showing flash as well as sound for all distant gunshots) - Caused some un-needed CPU overhead for distant shots since they had particle systems
1 Hour Ago
Don't run lights or particle system IK effects ion muzzle flashes if they've faded out Lights and particle system IK were still running on the background for complete muzzle flashes that weren't yet recycled With 20 bots firing AK shots simultaneously: - Saves ~0.5 ms on particle systems - Saves ~0.3ms on lights - More savings with reduced shadow jobs and update handler not having to go over each of the stale lights Around ~1ms in savings