Add tests for scenery surface caching and preview behavior

- Introduced `test_scenery_brick_preview.gd` to validate focused placement and CPU draw-cost for large brick walls.
- Added `test_scenery_surface_cache.gd` to assess texture budget, visual equivalence, and cache invalidation.
- Created `test_scenery_surface_preview.gd` to evaluate adaptive preview selection and placement behavior.
- Implemented various helper functions to measure drawing performance and validate expected behaviors during tests.
- Added unique identifiers for new test files to ensure proper tracking and management.
This commit is contained in:
2026-10-21 11:06:57 -04:00
parent 80ba83b703
commit c1758efd3b
54 changed files with 5941 additions and 526 deletions
+140
View File
@@ -0,0 +1,140 @@
{
"version": "1.6",
"scene_name": "Untitled",
"sky_id": "sky_neutral",
"camera": {
"position": {
"x": 0.0,
"y": -400.0
},
"zoom": 0.5
},
"objects": [
{
"file_id": "wall_panel_1",
"type": "wall_panel",
"position": {
"x": -768.0,
"y": -608.0
},
"rotation": 0.0,
"size": {
"x": 1152.0,
"y": 832.0
},
"finish_id": "finish_wall_brick",
"color": "#b95f3dff"
},
{
"file_id": "scenery_artwork_1",
"type": "scenery_artwork",
"position": {
"x": -64.0,
"y": -868.5
},
"rotation": 0.0,
"asset_id": "res://content/props/art_city_skyline-v1.prop",
"display_name": "City Skyline",
"depth": "far",
"scale": {
"x": 1.0,
"y": 1.0
},
"last_known_local_bounds": {
"position": {
"x": -321.5,
"y": -126.5
},
"size": {
"x": 643.0,
"y": 198.0
}
}
},
{
"file_id": "scenery_artwork_2",
"type": "scenery_artwork",
"position": {
"x": 320.0,
"y": -804.5
},
"rotation": 0.0,
"asset_id": "res://content/props/art_city_skyline-v1.prop",
"display_name": "City Skyline",
"depth": "floor",
"scale": {
"x": 1.0,
"y": 1.0
},
"last_known_local_bounds": {
"position": {
"x": -321.5,
"y": -126.5
},
"size": {
"x": 643.0,
"y": 198.0
}
}
},
{
"file_id": "scenery_artwork_3",
"type": "scenery_artwork",
"position": {
"x": 768.0,
"y": -804.5
},
"rotation": 0.0,
"asset_id": "res://content/props/art_city_skyline-v1.prop",
"display_name": "City Skyline",
"depth": "near",
"scale": {
"x": 1.0,
"y": 1.0
},
"last_known_local_bounds": {
"position": {
"x": -321.5,
"y": -126.5
},
"size": {
"x": 643.0,
"y": 198.0
}
}
},
{
"file_id": "scenery_artwork_4",
"type": "scenery_artwork",
"position": {
"x": -448.0,
"y": -1600.0
},
"rotation": 0.0,
"asset_id": "res://content/props/baseball.prop",
"display_name": "Baseball",
"depth": "near",
"scale": {
"x": 1.0,
"y": 1.0
},
"last_known_local_bounds": {
"position": {
"x": -26.1999988555908,
"y": -26.1999988555908
},
"size": {
"x": 52.4000015258789,
"y": 52.4000015258789
}
}
}
],
"event_rules": [],
"metadata": {
"created_unix": 1792555445.055,
"modified_unix": 1792555445.055,
"autosave": false,
"source_path": ""
}
}