Skip to content
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

Change to cheaper texture for BinaryDataStream to potentially cut performance cost #336

Merged
merged 2 commits into from
Apr 22, 2022
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
14 changes: 10 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/AirforceGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -297,19 +297,25 @@ End


;------------------------------------------------------------------------------
; Patch104p @bugfix xezon 12/09/2021 Fix expensive BinaryDataStream effect
; Change Texture (EXBinaryStream32.tga) as it appears to benefit some systems.
; Change InnerBeamWidth (4) to reduce width of new textured stream effect.
; Change Segments (20) to save as much as 60% performance impact.
; Change TilingScalar (0.25) to unstretch the texture.

Object AirF_PatriotBinaryDataStream
; *** ART Parameters ***
Draw = W3DLaserDraw ModuleTag_01
Texture = EXBinaryStream32.tga
Texture = EXBinaryStream.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 5 ;The total width of beam; Patch104p: Increase from 4 to 5 to make beam not look as thin
InnerBeamWidth = 2.75 ;The total width of beam
InnerColor = R:0 G:255 B:0 A:180 ;The inside color of the laser (hot)
Tile = Yes ;The height of the texture will determine how many times to tile the texture to fit without scaling.
ScrollRate = -0.25 ;Scrolls the texture offset this fast -- towards(-) away(+)
Segments = 3 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20; Patch104p: Reduce from 20 to 3 to improve performance
Segments = 5 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20
ArcHeight = 30.0 ;The height of the arc
SegmentOverlapRatio = 0.0000 ;This value overlaps(+) or separates(-) the segments by ratio
TilingScalar = 0.50 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural); Patch104p: Increase from 0.25 to 0.50 to reduce texture stretching
TilingScalar = 0.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down
14 changes: 10 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/BossGeneral.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
;------------------------------------------------------------------------------
; Patch104p @bugfix xezon 12/09/2021 Fix expensive BinaryDataStream effect
; Change Texture (EXBinaryStream32.tga) as it appears to benefit some systems.
; Change InnerBeamWidth (4) to reduce width of new textured stream effect.
; Change Segments (20) to save as much as 60% performance impact.
; Change TilingScalar (0.25) to unstretch the texture.

Object Boss_PatriotBinaryDataStream
; *** ART Parameters ***
Draw = W3DLaserDraw ModuleTag_01
Texture = EXBinaryStream32.tga
Texture = EXBinaryStream.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 5 ;The total width of beam; Patch104p: Increase from 4 to 5 to make beam not look as thin
InnerBeamWidth = 2.75 ;The total width of beam
InnerColor = R:0 G:255 B:0 A:180 ;The inside color of the laser (hot)
Tile = Yes ;The height of the texture will determine how many times to tile the texture to fit without scaling.
ScrollRate = -0.25 ;Scrolls the texture offset this fast -- towards(-) away(+)
Segments = 3 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20; Patch104p: Reduce from 20 to 3 to improve performance
Segments = 5 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20
ArcHeight = 30.0 ;The height of the arc
SegmentOverlapRatio = 0.0000 ;This value overlaps(+) or separates(-) the segments by ratio
TilingScalar = 0.50 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural); Patch104p: Increase from 0.25 to 0.50 to reduce texture stretching
TilingScalar = 0.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down
14 changes: 10 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/FactionBuilding.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29519,19 +29519,25 @@ Object ChinaMoat
End

;------------------------------------------------------------------------------
; Patch104p @bugfix xezon 12/09/2021 Fix expensive BinaryDataStream effect
; Change Texture (EXBinaryStream32.tga) as it appears to benefit some systems.
; Change InnerBeamWidth (4) to reduce width of new textured stream effect.
; Change Segments (20) to save as much as 60% performance impact.
; Change TilingScalar (0.25) to unstretch the texture.

Object PatriotBinaryDataStream
; *** ART Parameters ***
Draw = W3DLaserDraw ModuleTag_01
Texture = EXBinaryStream32.tga
Texture = EXBinaryStream.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 5 ;The total width of beam; Patch104p: Increase from 4 to 5 to make beam not look as thin
InnerBeamWidth = 2.75 ;The total width of beam
InnerColor = R:0 G:255 B:0 A:180 ;The inside color of the laser (hot)
Tile = Yes ;The height of the texture will determine how many times to tile the texture to fit without scaling.
ScrollRate = -0.25 ;Scrolls the texture offset this fast -- towards(-) away(+)
Segments = 3 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20; Patch104p: Reduce from 20 to 3 to improve performance
Segments = 5 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20
ArcHeight = 30.0 ;The height of the arc
SegmentOverlapRatio = 0.0000 ;This value overlaps(+) or separates(-) the segments by ratio
TilingScalar = 0.50 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural); Patch104p: Increase from 0.25 to 0.50 to reduce texture stretching
TilingScalar = 0.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down
14 changes: 10 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/WeaponObjects.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4409,19 +4409,25 @@ Object SupW_ParticleUplinkCannon_OrbitalLaser
End

;------------------------------------------------------------------------------
; Patch104p @bugfix xezon 12/09/2021 Fix expensive BinaryDataStream effect
; Change Texture (EXBinaryStream32.tga) as it appears to benefit some systems.
; Change InnerBeamWidth (4) to reduce width of new textured stream effect.
; Change Segments (20) to save as much as 60% performance impact.
; Change TilingScalar (0.25) to unstretch the texture.

Object BinaryDataStream
; *** ART Parameters ***
Draw = W3DLaserDraw ModuleTag_01
Texture = EXBinaryStream32.tga
Texture = EXBinaryStream.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 5 ;The total width of beam; Patch104p: Increase from 4 to 5 to make beam not look as thin
InnerBeamWidth = 2.75 ;The total width of beam
InnerColor = R:0 G:255 B:0 A:180 ;The inside color of the laser (hot)
Tile = Yes ;The height of the texture will determine how many times to tile the texture to fit without scaling.
ScrollRate = -0.25 ;Scrolls the texture offset this fast -- towards(-) away(+)
Segments = 3 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20; Patch104p: Reduce from 20 to 3 to improve performance
Segments = 10 ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20
ArcHeight = 30.0 ;The height of the arc
SegmentOverlapRatio = 0.0000 ;This value overlaps(+) or separates(-) the segments by ratio
TilingScalar = 0.50 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural); Patch104p: Increase from 0.25 to 0.50 to reduce texture stretching
TilingScalar = 0.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down