Skip to content

Optimization: Decrease cost of toxin and hazard cleanup stream trail particles by around 50% #2034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
date: 2023-06-24

title: Decreases performance cost of hazard cleanup stream trail effects by 50% to 57%

changes:
- optimization: Decreases the performance cost of hazard cleanup stream trail effects by 50% to 57%. Affects USA Ambulance.

labels:
- art
- major
- performance
- usa
- v1.0

links:
- https://github.com/TheSuperHackers/GeneralsGamePatch/pull/2034

authors:
- xezon
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
date: 2023-06-24

title: Decreases performance cost of toxin stream trail effects by 50% to 65%

changes:
- optimization: Decreases the performance cost of toxin stream trail effects by 50% to 65%. Affects GLA Toxin Tractor, Toxin Rebel and Toxin Tunnel.

labels:
- art
- gla
- major
- performance
- v1.0

links:
- https://github.com/TheSuperHackers/GeneralsGamePatch/pull/2034

authors:
- xezon
Original file line number Diff line number Diff line change
Expand Up @@ -22341,7 +22341,7 @@ End


;------------------------------------------------------------------------------
Object Chem_ToxinStreamProjectile
Object Chem_ToxinStreamProjectile ; unused

; Explanation - Particles can't do damage, so this is a fast shooting low
; damage invisible missile launcher with a toxin trail for exhaust
Expand Down
30 changes: 17 additions & 13 deletions Patch104pZH/GameFilesEdited/Data/INI/ParticleSystem.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4706,6 +4706,7 @@ ParticleSystem NukeBaikonurMushroomStem
WindPingPongEndAngleMax = 6.283185
End

; Patch104p @performance xezon 24/06/2023 Decreases cost of trail by 50% to 65% (#2034)
ParticleSystem AnthraxTrail01
Priority = CRITICAL
IsOneShot = No
Expand All @@ -4718,10 +4719,10 @@ ParticleSystem AnthraxTrail01
VelocityDamping = 0.80 0.90
Gravity = -0.10
Lifetime = 10.00 10.00
SystemLifetime = 20
SystemLifetime = 10 ; Patch104p @performance from 20 to decrease the maximum number of instances on the stream, maximum system lifetime is 14
Size = 1.00 2.00
StartSizeRate = 0.00 0.00
SizeRate = -1.00 1.00
SizeRate = -0.33 1.00 ; Patch104p @tweak from -1.00 1.00 to decrease the number of tiny particles
SizeRateDamping = 0.90 0.95
Alpha1 = 0.00 0.00 0
Alpha2 = 1.00 1.00 5
Expand All @@ -4740,7 +4741,7 @@ ParticleSystem AnthraxTrail01
Color7 = R:0 G:0 B:0 0
Color8 = R:0 G:0 B:0 0
ColorScale = 1.00 0.00
BurstDelay = 0.00 1.00
BurstDelay = 0.00 2.00 ; Patch104p @performance from 0.00 1.00 to increase the spawn interval at random
BurstCount = 1.00 1.00
InitialDelay = 0.00 0.00
DriftVelocity = X:0.00 Y:0.00 Z:0.00
Expand Down Expand Up @@ -12930,6 +12931,7 @@ ParticleSystem SmokeSmall
WindPingPongEndAngleMax = 6.283185
End

; Patch104p @performance xezon 24/06/2023 Decreases cost of trail by 50% to 65% (#2034)
ParticleSystem GC_Chem_ToxinTrail01
Priority = CRITICAL
IsOneShot = No
Expand All @@ -12942,10 +12944,10 @@ ParticleSystem GC_Chem_ToxinTrail01
VelocityDamping = 0.80 0.90
Gravity = -0.10
Lifetime = 10.00 10.00
SystemLifetime = 20
SystemLifetime = 10 ; Patch104p @performance from 20 to decrease the maximum number of instances on the stream, maximum system lifetime is 14
Size = 1.00 2.00
StartSizeRate = 0.00 0.00
SizeRate = -1.00 1.00
SizeRate = -0.33 1.00 ; Patch104p @tweak from -1.00 1.00 to decrease the number of tiny particles
SizeRateDamping = 0.90 0.95
Alpha1 = 0.00 0.00 0
Alpha2 = 1.00 1.00 5
Expand All @@ -12964,7 +12966,7 @@ ParticleSystem GC_Chem_ToxinTrail01
Color7 = R:0 G:0 B:0 0
Color8 = R:0 G:0 B:0 0
ColorScale = 1.00 0.00
BurstDelay = 0.00 1.00
BurstDelay = 0.00 2.00 ; Patch104p @performance from 0.00 1.00 to increase the spawn interval at random
BurstCount = 1.00 1.00
InitialDelay = 0.00 0.00
DriftVelocity = X:0.00 Y:0.00 Z:0.00
Expand All @@ -12986,6 +12988,7 @@ ParticleSystem GC_Chem_ToxinTrail01
WindPingPongEndAngleMax = 6.283185
End

; Patch104p @performance xezon 24/06/2023 Decreases cost of trail by 50% to 65% (#2034)
ParticleSystem ToxinTrail01
Priority = CRITICAL
IsOneShot = No
Expand All @@ -12998,10 +13001,10 @@ ParticleSystem ToxinTrail01
VelocityDamping = 0.80 0.90
Gravity = -0.10
Lifetime = 10.00 10.00
SystemLifetime = 20
SystemLifetime = 10 ; Patch104p @performance from 20 to decrease the maximum number of instances on the stream, maximum system lifetime is 14
Size = 1.00 2.00
StartSizeRate = 0.00 0.00
SizeRate = -1.00 1.00
SizeRate = -0.33 1.00 ; Patch104p @tweak from -1.00 1.00 to decrease the number of tiny particles
SizeRateDamping = 0.90 0.95
Alpha1 = 0.00 0.00 0
Alpha2 = 1.00 1.00 5
Expand All @@ -13020,7 +13023,7 @@ ParticleSystem ToxinTrail01
Color7 = R:0 G:0 B:0 0
Color8 = R:0 G:0 B:0 0
ColorScale = 1.00 0.00
BurstDelay = 0.00 1.00
BurstDelay = 0.00 2.00 ; Patch104p @performance from 0.00 1.00 to increase the spawn interval at random
BurstCount = 1.00 1.00
InitialDelay = 0.00 0.00
DriftVelocity = X:0.00 Y:0.00 Z:0.00
Expand Down Expand Up @@ -13098,7 +13101,7 @@ ParticleSystem FlameThrowerSmoke01
WindPingPongEndAngleMax = 6.283185
End

ParticleSystem ToxinTrail02
ParticleSystem ToxinTrail02 ; unused
Priority = CRITICAL
IsOneShot = No
Shader = ADDITIVE
Expand Down Expand Up @@ -20821,6 +20824,7 @@ ParticleSystem _FireTest
End

; Patch104p @fix xezon 25/06/2023 Adjusts particle colors to better blend with the cyan excleanupstream texture. (#2041)
; Patch104p @performance xezon 24/06/2023 Decreases cost of trail by 50% to 57% (#2034)
ParticleSystem CleanupTrail01
Priority = CRITICAL
IsOneShot = No
Expand All @@ -20833,14 +20837,14 @@ ParticleSystem CleanupTrail01
VelocityDamping = 0.80 0.90
Gravity = -0.10
Lifetime = 10.00 10.00
SystemLifetime = 20
SystemLifetime = 12 ; Patch104p @performance from 20 to decrease the maximum number of instances on the stream, maximum system lifetime is 14
Size = 1.00 2.00
StartSizeRate = 0.00 0.00
SizeRate = 1.00 1.00
SizeRateDamping = 0.90 0.95
Alpha1 = 0.00 0.00 0
Alpha2 = 1.00 1.00 5
Alpha3 = 0.00 0.00 10 ; Patch104p @tweak from 20
Alpha3 = 0.00 0.00 20
Alpha4 = 0.00 0.00 0
Alpha5 = 0.00 0.00 0
Alpha6 = 0.00 0.00 0
Expand All @@ -20855,7 +20859,7 @@ ParticleSystem CleanupTrail01
Color7 = R:0 G:0 B:0 0
Color8 = R:0 G:0 B:0 0
ColorScale = 1.00 0.00
BurstDelay = 0.00 1.00
BurstDelay = 0.00 2.00 ; Patch104p @performance from 0.00 1.00 to increase the spawn interval at random
BurstCount = 2.00 2.00
InitialDelay = 0.00 0.00
DriftVelocity = X:0.00 Y:0.00 Z:0.00
Expand Down