Make F5 incremental and reduce iron maiden geometry, physics and idle updates
This commit is contained in:
@@ -22,6 +22,9 @@ func run(g):
|
||||
var textured=0
|
||||
for mesh in surfaces:
|
||||
if mesh==d.flame:continue
|
||||
if mesh.get_meta("no_walk_collision",false):
|
||||
check(not mesh.has_node("MeshWalkingCollider"),"internal detail does not duplicate shell physics")
|
||||
check(mesh.cast_shadow==GeometryInstance3D.SHADOW_CASTING_SETTING_OFF,"internal detail skips redundant shadows")
|
||||
for i in range(mesh.mesh.get_surface_count()):
|
||||
var mat=mesh.mesh.surface_get_material(i)
|
||||
if mat is StandardMaterial3D and mat.albedo_texture!=null:textured+=1
|
||||
@@ -59,6 +62,15 @@ func run(g):
|
||||
check(is_equal_approx(d.door.rotation.y,-1.8) and is_equal_approx(d.second_door.rotation.y,1.8),"doors reopen after cooldown")
|
||||
for k in range(25):w.step_station(d,.1,false)
|
||||
check(d.motion.heat<.01 and d.motion.heat_light.light_energy<.01,"incandescence cools back to original metal")
|
||||
check(not d.motion.heat_light.visible,"cooled heat light leaves rendering")
|
||||
await shot(g,"cooled")
|
||||
var other=w.add_station(3,Vector3(8,0,0))
|
||||
var first_detail=d.device.find_child("InnerBackDetail",true,false).get_child(0)
|
||||
var second_detail=other.device.find_child("InnerBackDetail",true,false).get_child(0)
|
||||
check(first_detail.mesh==second_detail.mesh,"repeated devices reuse cached detail geometry")
|
||||
check(first_detail.get_active_material(0)!=second_detail.get_active_material(0),"each device has independent heat material")
|
||||
var before=other.motion.heat_materials[0].get_shader_parameter("heat")
|
||||
d.motion.heat=.8;d.motion.apply_heat()
|
||||
check(other.motion.heat_materials[0].get_shader_parameter("heat")==before,"heating one cached device does not heat its neighbour")
|
||||
print("IRON MAIDEN QA ","PASSED" if failures==0 else "FAILED",": textured model, hinges, sweep, close/heat/reward/reopen")
|
||||
g.get_tree().quit(1 if failures else 0)
|
||||
|
||||
Reference in New Issue
Block a user