Skip to content

Commit

Permalink
Optimized VRAM consumption for the reformer.
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 21, 2024
1 parent 5ba5caf commit 00c3543
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 41 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Date: ?
- Added an unlock for unused vanadium pentoxide recipes.
- Added new graphics for the reformer.
- Increased the healh of the reformer from 100, 100, 100, 100 to 300, 600, 900, 1200.
- Optimized VRAM consumption for the reformer.
---------------------------------------------------------------------------------------------------
Version: 3.0.8
Date: 2024-11-18
Expand Down
45 changes: 4 additions & 41 deletions prototypes/buildings/reformer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,13 @@ for i = 1, 4 do
tint = py.tints[i]
},
{
filename = "__pypetroleumhandlinggraphics__/graphics/entity/reformer-mk01/i8.png",
width = 64,
filename = "__pypetroleumhandlinggraphics__/graphics/entity/reformer-mk01/sh.png",
width = 128,
height = 769,
frame_count = 1,
line_length = 1,
shift = util.by_pixel(272, -176)
draw_as_shadow = true,
shift = util.by_pixel(272 - 32, -176)
},
},
},
Expand Down Expand Up @@ -356,44 +357,6 @@ for i = 1, 4 do
shift = util.by_pixel(80, -176),
tint = py.tints[i]
},
{
filename = "__pypetroleumhandlinggraphics__/graphics/entity/reformer-mk01/i6.png",
width = 64,
height = 769,
frame_count = 50,
line_length = 25,
animation_speed = 0.4,
shift = util.by_pixel(144, -176)
},
{
filename = "__pypetroleumhandlinggraphics__/graphics/entity/reformer-mk01/i6-mask.png",
width = 64,
height = 769,
frame_count = 50,
line_length = 25,
animation_speed = 0.4,
shift = util.by_pixel(144, -176),
tint = py.tints[i]
},
{
filename = "__pypetroleumhandlinggraphics__/graphics/entity/reformer-mk01/i7.png",
width = 64,
height = 769,
frame_count = 50,
line_length = 25,
animation_speed = 0.4,
shift = util.by_pixel(208, -176)
},
{
filename = "__pypetroleumhandlinggraphics__/graphics/entity/reformer-mk01/i7-mask.png",
width = 64,
height = 769,
frame_count = 50,
line_length = 25,
animation_speed = 0.4,
shift = util.by_pixel(208, -176),
tint = py.tints[i]
},
}
},
}
Expand Down

0 comments on commit 00c3543

Please sign in to comment.