Rain causing severe FPS issues

iiboharz

eternally tired
aa
Nov 5, 2014
857
1,291
I mean this should go without question but those particles are incredibly more demanding because it does collision checks for every particle of rain. Use a cheaper particle.
 

Blinx

L69: Deviant Member
Mar 14, 2016
69
51
Wow but an 80% cut to FPS though? That's staggering, thanks for the answer though.
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Wow but an 80% cut to FPS though? That's staggering, thanks for the answer though.
Lots of particles, lots of collision checking every frame and the CPU also has to do all of the other game calculations on pretty much the same core because TF2 likes to use just one core.
 

Tacoman_

L1: Registered
Nov 19, 2014
31
53
I have alot of custom particles in my game and noticed a huge drop in performance after the Tough Break update hit.
I was forced to remove alot of collision particles and optimize the particle effects.
I recommend that you don't use alot particles with collisions since they seem to be borked at the moment

But if you still want to have rain collide there are a few optimization things you can easily do in the particle editor
- Emmiters > Emit continuously
Decrease the emission rate to lower the total particle count
- Constraints > Collide with world
Increase the "Trace accuracy tolerance" to 256 or higher. It will make the collision detection more inaccurate but it won't really be noticeable(assuming you don't have paper thin walls)
You can also set it to collide with brushes only. You can then use block bullets or nodraw to give rain collision to important/big props.

On the mapping side of things.
- Don't have the rain particle active 24/7
Use a toggle or a rain particle without collision on inactive areas such as payload stages and foward/back spawning that leaves a portion of the map unused
- Make sure that the particles "aabb" box aligns properly inside brushes/visleafs.
I am not too sure how or even if this will help. But I am confident that some sort of visibility culling takes place. If you do try this out tell me the results, I am trying to figure this one out as well.
"cl_particle_show_bbox 1" is your friend
- Don't use vphysics for every prop, the block bullet trick is better instead. A simpler collision mesh will help (Not as impactful as the rest, but every bit helps)
 
Last edited: