OverviewFilesCommitsIssuesDocsReleasesPeers

dc-terrain commits / 94bd5f8

Revert "atlas: announce the transport from the point of emission, once"
This reverts commit 047a21526fb39b453b18677982471df09a81034c.
94bd5f85e912cf7d622e987835909612d93383a1
by plankatron <fleeky@gmail.com> · 2026-09-03T17:01:25.000Z

Changed files (1) +1 -15

src/dc_terrain_generator_procnodes.cpp +1 -15
……@@ -539,21 +539,7 @@ void DCTerrainGeneratorProcNodes::set_graph(const Ref<Resource> &p_graph) {
539539// HBLK_USE_ATLAS=1 godot4 --path . --script res://scenes/test/...
540540static bool _use_atlas() {
541541 String v = OS::get_singleton()->get_environment("HBLK_USE_ATLAS");
542 const bool on = (v == "1" || v.to_lower() == "true");
543 // REPORTED FROM HERE, ONCE, AND NOWHERE ELSE. The first attempt at this
544 // printed from GDScript by scanning g.compile_to_glsl_function(), which is
545 // the GRAPH's compiler output -- a DIFFERENT string from the cached_glsl_
546 // this generator assembles. The HBLK_* consts are not in it, so it reported
547 // "SSBO ... HBLK_ATLAS_W=?" in BOTH arms of the A/B and proved nothing.
548 // Printing at the point of emission cannot drift from what is emitted.
549 static bool announced = false;
550 if (!announced) {
551 announced = true;
552 UtilityFunctions::print("[DCTerrainGeneratorProcNodes] HBLK transport: ",
553 on ? "ATLAS binding 14" : "SSBO binding 13",
554 " (HBLK_USE_ATLAS=\"", v, "\", HBLK_ATLAS_W=", itos(DCCompute::ATLAS_W), ")");
555 }
556 return on;
542 return v == "1" || v.to_lower() == "true";
557543}
558544
559545