forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize Cybran build effects (FAForever#3355)
* Add build drone counts per unit * Add (and name-refactor) total drone count for cybran engineers * Ensure the OnCreate hierarchy is called properly to initialise maximum drone count * Optimize cybran build drones * Optimize cybran build effects * Optimize cybran build drones * Refactor cybran classes for better build bot support * Add Cybran build bots made by Madmax * Fix orientation of cybran build bots * Add cybran build beams so that we can tweak them * Tweak aesthetics of cybran build bots * Add efficient version of effect utilities This makes it easier to keep track of files and functions that have been optmized. * Revert changes to effect utilities * Appeneded optimized functions to old effect utilities file * Tweak visuals build bots and add deprecation warnings * Rename functions for sake of clarity * Inline an expensive function for performance The function (RandomOffset) of unit.lua retrieved blueprints twice and too many random numbers. Inlining and caching it improves performance by another significant amount (0.5ms - 1ms less!) * Tweak aesthetics of cybran build animation * Refactor for less indenting and minor loop fix * Prevent AI from using the cybran build drones * Add comment for clarity
- Loading branch information
Showing
35 changed files
with
1,380 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BeamBlueprint { | ||
Lifetime = 2, | ||
TextureName = '/textures/particles/beam_disruptor.dds', | ||
Thickness = 0.025, | ||
StartColor = {x=0.2,y=0.2,z=1,w=0.3}, # R,G,B,A | ||
EndColor = {x=0.2,y=0.2,z=1,w=0.3}, # R,G,B,A | ||
Length = 8, | ||
UShift = 0.0, | ||
VShift = -0.5, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BeamBlueprint { | ||
Lifetime = 2, | ||
TextureName = '/textures/particles/beam_white_02.dds', | ||
Thickness = 0.018, | ||
StartColor = {x=0.6,y=0,z=0.1,w=0.2}, # R,G,B,Glow | ||
EndColor = {x=1,y=0.2,z=0,w=0.2}, # R,G,B,Glow | ||
Length = 8, | ||
UShift = 0.0, | ||
VShift = 0.0, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BeamBlueprint { | ||
Lifetime = 2, | ||
TextureName = '/textures/particles/beam_white_07.dds', | ||
Thickness = 0.025, | ||
StartColor = {x=1,y=0.2,z=0,w=0.2}, # R,G,B,Glow | ||
EndColor = {x=0,y=0,z=0,w=0}, # R,G,B,Glow | ||
Length = 8, | ||
UShift = 0.0, | ||
VShift = 0.0, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BeamBlueprint { | ||
Lifetime = 2, | ||
TextureName = '/textures/particles/beam_white_02.dds', | ||
Thickness = 0.020, | ||
StartColor = {x=0.6,y=0,z=0.1,w=0.0}, # R,G,B,Glow | ||
EndColor = {x=1,y=0.2,z=0,w=0.0}, # R,G,B,Glow | ||
Length = 8, | ||
UShift = 0.0, | ||
VShift = -0.05, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BeamBlueprint { | ||
Lifetime = 2, | ||
TextureName = '/textures/particles/beam_white_02.dds', | ||
Thickness = 0.015, | ||
StartColor = {x=0.6,y=0,z=0.1,w=0.0}, # R,G,B,Glow | ||
EndColor = {x=1,y=0.2,z=0,w=0.0}, # R,G,B,Glow | ||
Length = 8, | ||
UShift = 0.0, | ||
VShift = 0.0, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
BeamBlueprint { | ||
Lifetime = 2, | ||
TextureName = '/textures/particles/beam_white_02.dds', | ||
Thickness = 0.030, | ||
StartColor = {x=1,y=0.2,z=0,w=0.0}, # R,G,B,Glow | ||
EndColor = {x=0,y=0,z=0,w=0}, # R,G,B,Glow | ||
RepeatRate = 0.1, | ||
Length = 2, | ||
UShift = 0.0, | ||
VShift = -0.2, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.