OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-tps / scenes / maps / map_dc_world.tscn

32 lines · tscn ref:
[gd_scene load_steps=3 format=3 uid="uid://mapdcworld01"]

[ext_resource type="PackedScene" uid="uid://mapdclevel01" path="res://scenes/maps/map_dc_level.tscn" id="1"]
[ext_resource type="Script" path="res://scenes/maps/map_dc_world.gd" id="2"]

[node name="MapDCWorld" instance=ExtResource("1")]
script = ExtResource("2")

; Copied from map_dc_terrain.tscn's DCTerrain node. IN THE SCENE, NOT IN A SCRIPT,
; and that is the point: every DCTerrain property setter is DC_SET_CONFIG, which
; calls rebuild() on any change (dc_terrain.cpp:2471). Setting these from
; _ready() fired THIRTEEN rebuilds back to back, each discarding the in-flight
; chunk work of the last, so the mesher restarted thirteen times before it could
; converge. Scene properties are applied at load, before _ready, and fire none.
;
; use_gpu is the one that matters most: its default is false (dc_density.h:114)
; and without it req.gpu_eligible is false for every chunk, so the whole map
; meshes on the CPU — survivable for noise, not with a 563k-triangle mesh SDF at
; ~150 ms per 32^3 chunk.
[node name="DCTerrain" type="DCTerrain" parent="."]
use_gpu = true
seed = 44
primary_frequency = 0.01
flat_center_radius = 26.0
terrain_size = 443.0
floor_strength = 2.13
floor_height_min = -50.0
floor_height_max = 50.0
room_height = 15.0
octree_depth = 12
debug_lod_colors = false