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
+372
View File
@@ -0,0 +1,372 @@
{
"version": "1.6",
"scene_name": "Blank Scene",
"sky_id": "sky_neutral",
"camera": {
"position": {
"x": 1863.90759277344,
"y": -391.476318359375
},
"zoom": 0.665500044822693
},
"objects": [
{
"file_id": "wall_panel_1",
"type": "wall_panel",
"position": {
"x": 448.0,
"y": -320.0
},
"rotation": 0.0,
"size": {
"x": 5120.0,
"y": 2816.0
},
"finish_id": "finish_wall_brick",
"color": "#b95f3dff"
},
{
"file_id": "stickman_1",
"type": "stickman",
"position": {
"x": -128.0,
"y": -129.0
},
"rotation": 0.0,
"stk_path": "res://content/stickmen/break.stk",
"facing_profile": "FORWARD",
"action_queue": [
{
"type": "move_to",
"target": {
"x": 2404.91528320313,
"y": 141.710083007813
},
"style": "walk"
}
]
},
{
"file_id": "terrain_1",
"type": "terrain",
"position": {
"x": -384.0,
"y": 256.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_2",
"type": "terrain",
"position": {
"x": -384.0,
"y": 288.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_3",
"type": "terrain",
"position": {
"x": 192.0,
"y": 256.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_4",
"type": "terrain",
"position": {
"x": 384.0,
"y": 256.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_5",
"type": "terrain",
"position": {
"x": 576.0,
"y": 256.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_6",
"type": "terrain",
"position": {
"x": 768.0,
"y": 256.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_7",
"type": "terrain",
"position": {
"x": 960.0,
"y": 256.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_8",
"type": "terrain",
"position": {
"x": 1152.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_9",
"type": "terrain",
"position": {
"x": 1344.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_10",
"type": "terrain",
"position": {
"x": 1536.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_11",
"type": "terrain",
"position": {
"x": 1728.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_12",
"type": "terrain",
"position": {
"x": 1920.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_13",
"type": "terrain",
"position": {
"x": 2112.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_14",
"type": "terrain",
"position": {
"x": 2304.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_15",
"type": "terrain",
"position": {
"x": 2496.0,
"y": 224.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_16",
"type": "terrain",
"position": {
"x": -192.0,
"y": 320.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_17",
"type": "terrain",
"position": {
"x": 0.0,
"y": 320.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_18",
"type": "terrain",
"position": {
"x": 192.0,
"y": 288.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_19",
"type": "terrain",
"position": {
"x": 384.0,
"y": 288.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "terrain_20",
"type": "terrain",
"position": {
"x": 576.0,
"y": 288.0
},
"rotation": 0.0,
"asset_id": "ground",
"scale": {
"x": 1.0,
"y": 1.0
},
"finish_id": "finish_ground_asphalt"
},
{
"file_id": "wall_panel_2",
"type": "wall_panel",
"position": {
"x": 1152.0,
"y": -64.0
},
"rotation": 0.0,
"size": {
"x": 9984.0,
"y": 5504.0
},
"finish_id": "finish_wall_brick",
"color": "#b95f3dff"
}
],
"event_rules": [],
"metadata": {
"created_unix": 1792022400,
"modified_unix": 1792470929.846,
"autosave": false,
"source_path": ""
}
}