Skip to content

Commit

Permalink
Fix broken binary stream effect (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon authored Jul 30, 2022
1 parent d93a38b commit d71109a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,24 +298,23 @@ 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 = EXBinaryStream.tga
Texture = EXBinaryStream32.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 2.75 ;The total width of beam
InnerBeamWidth = 5 ;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 = 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.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
TilingScalar = 0.66 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down
7 changes: 3 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/BossGeneral.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
;------------------------------------------------------------------------------
; 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 = EXBinaryStream.tga
Texture = EXBinaryStream32.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 2.75 ;The total width of beam
InnerBeamWidth = 5 ;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 = 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.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
TilingScalar = 0.66 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29520,24 +29520,23 @@ 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 = EXBinaryStream.tga
Texture = EXBinaryStream32.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 2.75 ;The total width of beam
InnerBeamWidth = 5 ;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 = 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.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
TilingScalar = 0.66 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down
7 changes: 3 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/WeaponObjects.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4410,24 +4410,23 @@ 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 = EXBinaryStream.tga
Texture = EXBinaryStream32.tga
NumBeams = 1 ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data. Current max: 10
InnerBeamWidth = 2.75 ;The total width of beam
InnerBeamWidth = 5 ;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 = 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.33 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
TilingScalar = 0.66 ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)
End

KindOf = IMMOBILE
Expand Down

0 comments on commit d71109a

Please sign in to comment.