summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikatomik <mikec_2007@hotmail.com>2022-09-20 23:53:08 -0400
committermikatomik <mikec_2007@hotmail.com>2022-09-21 06:17:29 -0400
commit582dec62fbd7018d3ee903dbd10d15ad224fe868 (patch)
tree7a0b5d6490db7b49b4acda7d2c0825729d8e0dd1
parente726067048dc8771d83ec490767f3ca5ea063219 (diff)
downloadgame_jam49-582dec62fbd7018d3ee903dbd10d15ad224fe868.tar.gz
game_jam49-582dec62fbd7018d3ee903dbd10d15ad224fe868.zip
Optimization pass
Set up a ton of occluders on the ship and set every material I could to backface cull
-rw-r--r--ship/ship/below_deck_walls.materialbin32843905 -> 32843890 bytes
-rw-r--r--ship/ship/hull_main.materialbin4446421 -> 4446418 bytes
-rw-r--r--ship/ship/rear_deck.materialbin4738633 -> 4738629 bytes
-rw-r--r--ship/ship/ship.tscn153
-rw-r--r--ship/ship_control_panel/main_control_panel_mat.materialbin817 -> 813 bytes
-rw-r--r--ship/steering_wheel/steering_wheel.materialbin829 -> 827 bytes
-rw-r--r--ship/steering_wheel/wheel_base.materialbin819 -> 814 bytes
-rw-r--r--ship/water_pump/SCREEN.materialbin891 -> 885 bytes
-rw-r--r--ship/water_pump/pipes.materialbin751 -> 748 bytes
-rw-r--r--ship/water_pump/reset_button.materialbin778 -> 775 bytes
-rw-r--r--ship/water_pump/start_button.materialbin775 -> 771 bytes
-rw-r--r--ship/water_pump/water_pump.materialbin806 -> 802 bytes
12 files changed, 152 insertions, 1 deletions
diff --git a/ship/ship/below_deck_walls.material b/ship/ship/below_deck_walls.material
index 470695a..0b2d1b7 100644
--- a/ship/ship/below_deck_walls.material
+++ b/ship/ship/below_deck_walls.material
Binary files differ
diff --git a/ship/ship/hull_main.material b/ship/ship/hull_main.material
index 348432c..49ad081 100644
--- a/ship/ship/hull_main.material
+++ b/ship/ship/hull_main.material
Binary files differ
diff --git a/ship/ship/rear_deck.material b/ship/ship/rear_deck.material
index a223e48..2f3cdbc 100644
--- a/ship/ship/rear_deck.material
+++ b/ship/ship/rear_deck.material
Binary files differ
diff --git a/ship/ship/ship.tscn b/ship/ship/ship.tscn
index 8623f68..0ead95c 100644
--- a/ship/ship/ship.tscn
+++ b/ship/ship/ship.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=68 format=2]
+[gd_scene load_steps=90 format=2]
[ext_resource path="res://ship/ship/rear_deck.material" type="Material" id=1]
[ext_resource path="res://ship/staircase_1/staircase_1.tscn" type="PackedScene" id=2]
@@ -364,6 +364,67 @@ normal_texture = ExtResource( 6 )
[sub_resource type="BoxShape" id=21]
extents = Vector3( 10.6563, 0.518438, 37.8106 )
+[sub_resource type="OccluderShapePolygon" id=52]
+polygon_points = PoolVector2Array( 10.9471, -29.7118, 10.9621, 44.4481, -10.977, 43.7491, -10.9879, -29.6988 )
+
+[sub_resource type="OccluderShapePolygon" id=53]
+polygon_points = PoolVector2Array( 7.05242, -7.11288, 11.2226, 4.5878, -11.0649, 4.72619, -7.67165, -6.46684 )
+
+[sub_resource type="OccluderShapePolygon" id=58]
+polygon_points = PoolVector2Array( 7.05242, -7.11288, 11.1587, 4.20079, -11.1162, 4.16759, -7.67165, -6.46684 )
+
+[sub_resource type="OccluderShapePolygon" id=54]
+polygon_points = PoolVector2Array( -0.15602, -2.12469, -0.0867991, 8.95647, -11.0801, 9.11318, -10.9508, -2.01116 )
+hole_points = PoolVector2Array( -10.1555, -1.9192, -10.0663, 3.58159, -7.91011, 3.5584, -7.87924, -1.93465 )
+
+[sub_resource type="OccluderShapePolygon" id=55]
+polygon_points = PoolVector2Array( 39.9773, -3.14143, 40.0116, 3.12414, -30.1435, 3.10472, -29.9435, -3.1454 )
+
+[sub_resource type="OccluderShapePolygon" id=56]
+polygon_points = PoolVector2Array( 39.9773, -3.14143, 40.0616, 3.13735, -29.6697, 3.24634, -29.9435, -3.1454 )
+
+[sub_resource type="OccluderShapePolygon" id=57]
+polygon_points = PoolVector2Array( 39.9773, -3.14143, 40.331, 8.66629, -30.1681, 8.65979, -29.9435, -3.1454 )
+
+[sub_resource type="OccluderShapePolygon" id=59]
+polygon_points = PoolVector2Array( 7.06445, -1.98651, 7.05848, 1.65883, -7.03831, 1.65729, -7.05896, -1.96744 )
+hole_points = PoolVector2Array( 4.44982, 1.52626, 2.42201, 1.52109, 2.40386, -1.93848, 4.47489, -2.02354 )
+
+[sub_resource type="OccluderShapePolygon" id=60]
+polygon_points = PoolVector2Array( 11.0425, -13.0768, 8.48999, 11.7227, -7.79015, 11.6852, -10.1675, -12.9287 )
+
+[sub_resource type="OccluderShapePolygon" id=61]
+polygon_points = PoolVector2Array( 10.5376, -2.9219, 10.5271, 5.87207, -8.77989, 5.79926, -8.87259, -2.84895 )
+hole_points = PoolVector2Array( -6.63879, 1.4958, -6.64957, -2.88519, -3.9025, 1.50887, -3.98502, -2.93009 )
+
+[sub_resource type="OccluderShapePolygon" id=62]
+polygon_points = PoolVector2Array( 6.77836, -2.88086, 6.61783, 5.763, -7.92263, 5.88062, -8.04374, -2.86456 )
+
+[sub_resource type="OccluderShapePolygon" id=63]
+polygon_points = PoolVector2Array( 10.5874, -2.8078, 10.5666, 5.93869, -11.6436, 5.98265, -11.5297, -2.93545 )
+
+[sub_resource type="OccluderShapePolygon" id=65]
+polygon_points = PoolVector2Array( 10.262, -2.77592, 10.2424, 5.7463, -6.43295, 5.86712, -6.29055, -2.40195 )
+
+[sub_resource type="OccluderShapePolygon" id=66]
+polygon_points = PoolVector2Array( 2.31769, -0.261097, 3.58746, 4.88715, -7.88809, 4.97435, -7.83994, -0.356266 )
+
+[sub_resource type="OccluderShapePolygon" id=67]
+polygon_points = PoolVector2Array( 2.21217, -0.286532, 3.56964, 4.8181, -7.92483, 4.89468, -7.90523, -0.260305 )
+
+[sub_resource type="OccluderShapePolygon" id=68]
+polygon_points = PoolVector2Array( 2.68991, -0.308233, 3.3846, 5.08045, -1.87774, 4.99477, -1.91824, -0.415148 )
+
+[sub_resource type="OccluderShapePolygon" id=69]
+polygon_points = PoolVector2Array( 3.10792, -0.309629, 2.94892, 5.11964, -2.4161, 4.90868, -1.26768, -0.433161 )
+
+[sub_resource type="OccluderShapePolygon" id=64]
+polygon_points = PoolVector2Array( 11.0022, -9.43926, 11.0539, 11.7509, -11.0512, 11.558, -11.6493, -9.52835 )
+hole_points = PoolVector2Array( 6.83135, -9.0509, 6.81323, -4.99036, 3.98497, -9.06356, 3.99967, -5.01502 )
+
+[sub_resource type="OccluderShapePolygon" id=70]
+polygon_points = PoolVector2Array( 11.1972, -11.1374, 11.1574, 11.0179, -11.3168, 11.0577, -11.3168, -11.0976 )
+
[node name="ship" type="Spatial"]
[node name="ViewPorts" type="Spatial" parent="."]
@@ -664,3 +725,93 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 15.4283, -51.0714 )
[node name="water_pump" parent="." instance=ExtResource( 22 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.65267, -3.96773, 18.2793 )
+
+[node name="occluders" type="Spatial" parent="."]
+
+[node name="Occluder" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.130149, 0 )
+shape = SubResource( 52 )
+
+[node name="Occluder2" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -40.7461 )
+shape = SubResource( 53 )
+
+[node name="Occluder7" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 38.8723 )
+shape = SubResource( 58 )
+
+[node name="Occluder3" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6.10202, 33.4622 )
+shape = SubResource( 54 )
+
+[node name="Occluder8" type="Occluder" parent="occluders"]
+transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 6.10202, 33.4622 )
+shape = SubResource( 54 )
+
+[node name="Occluder4" type="Occluder" parent="occluders"]
+transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 5.27256, -2.67273, 0 )
+shape = SubResource( 55 )
+
+[node name="Occluder5" type="Occluder" parent="occluders"]
+transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -6.4678, -2.67273, 0 )
+shape = SubResource( 56 )
+
+[node name="Occluder6" type="Occluder" parent="occluders"]
+transform = Transform( 1.91069e-15, 1, -4.37114e-08, 4.37114e-08, -4.37114e-08, -1, -1, 0, -4.37114e-08, -3.16583, -5.57274, 0 )
+shape = SubResource( 57 )
+
+[node name="Occluder9" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.43056, 29.8543 )
+shape = SubResource( 59 )
+
+[node name="Occluder10" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 2.94428, 48.0679 )
+shape = SubResource( 60 )
+
+[node name="Occluder11" type="Occluder" parent="occluders"]
+transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 7.72303, 7.12468, 42.8309 )
+shape = SubResource( 61 )
+
+[node name="Occluder12" type="Occluder" parent="occluders"]
+transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -7.66203, 7.12468, 42.8309 )
+shape = SubResource( 61 )
+
+[node name="Occluder13" type="Occluder" parent="occluders"]
+transform = Transform( -1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.579357, 7.12468, 53.885 )
+shape = SubResource( 62 )
+
+[node name="Occluder14" type="Occluder" parent="occluders"]
+transform = Transform( -1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -0.579357, 15.0585, 54.0619 )
+shape = SubResource( 63 )
+
+[node name="Occluder16" type="Occluder" parent="occluders"]
+transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 11.0968, 15.4415, 43.8573 )
+shape = SubResource( 65 )
+
+[node name="Occluder17" type="Occluder" parent="occluders"]
+transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -11.0951, 15.4415, 43.8573 )
+shape = SubResource( 65 )
+
+[node name="Occluder18" type="Occluder" parent="occluders"]
+transform = Transform( -0.994478, 0, -0.104945, 0, 1, 0, 0.104945, 0, -0.994478, -18.9492, 15.4415, 37.9879 )
+shape = SubResource( 66 )
+
+[node name="Occluder19" type="Occluder" parent="occluders"]
+transform = Transform( 0.994974, 0, -0.100136, 0, 1, 0, 0.100136, 0, 0.994974, 18.9596, 15.4415, 38.1827 )
+shape = SubResource( 67 )
+
+[node name="Occluder20" type="Occluder" parent="occluders"]
+transform = Transform( -0.00279734, 0.279578, 0.960119, -0.032952, 0.959575, -0.279516, -0.999453, -0.0324197, 0.00652841, 21.1862, 15.5105, 36.5809 )
+shape = SubResource( 68 )
+
+[node name="Occluder21" type="Occluder" parent="occluders"]
+transform = Transform( 0.00279743, -0.279578, -0.960119, -0.032952, 0.959575, -0.279516, 0.999453, 0.0324197, -0.00652833, -21.3088, 15.5105, 35.277 )
+shape = SubResource( 69 )
+
+[node name="Occluder15" type="Occluder" parent="occluders"]
+transform = Transform( -1, 0, 8.74228e-08, -8.74228e-08, -4.37114e-08, -1, 3.82137e-15, -1, 4.37114e-08, -0.579357, 14.8435, 44.4915 )
+shape = SubResource( 64 )
+
+[node name="Occluder22" type="Occluder" parent="occluders"]
+transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 21.0648, 43.0191 )
+shape = SubResource( 70 )
diff --git a/ship/ship_control_panel/main_control_panel_mat.material b/ship/ship_control_panel/main_control_panel_mat.material
index 12a7616..85a7cce 100644
--- a/ship/ship_control_panel/main_control_panel_mat.material
+++ b/ship/ship_control_panel/main_control_panel_mat.material
Binary files differ
diff --git a/ship/steering_wheel/steering_wheel.material b/ship/steering_wheel/steering_wheel.material
index c8d8689..c7fdef0 100644
--- a/ship/steering_wheel/steering_wheel.material
+++ b/ship/steering_wheel/steering_wheel.material
Binary files differ
diff --git a/ship/steering_wheel/wheel_base.material b/ship/steering_wheel/wheel_base.material
index af3f0b8..e234d34 100644
--- a/ship/steering_wheel/wheel_base.material
+++ b/ship/steering_wheel/wheel_base.material
Binary files differ
diff --git a/ship/water_pump/SCREEN.material b/ship/water_pump/SCREEN.material
index 8e53578..34d1828 100644
--- a/ship/water_pump/SCREEN.material
+++ b/ship/water_pump/SCREEN.material
Binary files differ
diff --git a/ship/water_pump/pipes.material b/ship/water_pump/pipes.material
index 5acd7bb..f94fe58 100644
--- a/ship/water_pump/pipes.material
+++ b/ship/water_pump/pipes.material
Binary files differ
diff --git a/ship/water_pump/reset_button.material b/ship/water_pump/reset_button.material
index 2140286..f3dadc5 100644
--- a/ship/water_pump/reset_button.material
+++ b/ship/water_pump/reset_button.material
Binary files differ
diff --git a/ship/water_pump/start_button.material b/ship/water_pump/start_button.material
index ecdcb80..453845b 100644
--- a/ship/water_pump/start_button.material
+++ b/ship/water_pump/start_button.material
Binary files differ
diff --git a/ship/water_pump/water_pump.material b/ship/water_pump/water_pump.material
index 229e9ee..d823c57 100644
--- a/ship/water_pump/water_pump.material
+++ b/ship/water_pump/water_pump.material
Binary files differ