I added 2 cvars for the rails (shot by both humans and monsters) to improve performance for people who are experiencing large frame rate drops when rail shots are spammed. This happens a lot in GZDoom's GL renderer but I am guessing it would also happen for people with old computers who are playing with the software renderer, so I submitted it here and not there.
-r_rail_sparsity - Increases the "sparsity" or decreases the density of the rail particles, the higher you set this. This works like a quotient, so 2 will halve, 3 will divide the amount of particles by three, and so on. Default is 1, and values below 0 do nothing. The spiral starts looking ugly if you have this set to 4 or higher, but you can turn it off

-r_rail_spiral - Toggles the railgun spiral. Default is "true", and "false" forces the outer spiral off to improve performance.
Only p_effect.cpp is modified by this change.
[edit: Oh yes and I forgot to mention that this will allow you to see more railgun shots with the same amount of maxparticles!]
[edit: updated! look at last post!]