Skip to content

Commit

Permalink
Change to cheaper texture for BinaryDataStream to potentially cut per…
Browse files Browse the repository at this point in the history
…formance cost
  • Loading branch information
xezon committed Sep 12, 2021
1 parent fca505f commit ec3d5d1
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 16 deletions.
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 @@ -295,19 +295,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 ;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 = 3 ;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 ;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 = 3 ;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 @@ -29429,19 +29429,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 ;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 = 3 ;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 @@ -4403,19 +4403,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 ;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 = 3 ;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

0 comments on commit ec3d5d1

Please sign in to comment.