diff --git a/editor/terrain/voxel_terrain_editor_plugin.cpp b/editor/terrain/voxel_terrain_editor_plugin.cpp index 2bb257d2..7ad2e790 100644 --- a/editor/terrain/voxel_terrain_editor_plugin.cpp +++ b/editor/terrain/voxel_terrain_editor_plugin.cpp @@ -118,11 +118,11 @@ void VoxelTerrainEditorPlugin::_notification(int p_what) { int main_thread_tasks = 0; VoxelLodTerrain *vlt = Object::cast_to(_node); if (vlt != nullptr) { - main_thread_tasks = vlt->get_stats().pending_block_meshes; + main_thread_tasks = vlt->get_stats().remaining_main_thread_blocks; } else { VoxelTerrain *vt = Object::cast_to(_node); if (vt != nullptr) { - main_thread_tasks = vt->get_stats().pending_block_meshes; + main_thread_tasks = vt->get_stats().remaining_main_thread_blocks; } } _task_indicator->update_stats(main_thread_tasks); diff --git a/terrain/voxel_lod_terrain.cpp b/terrain/voxel_lod_terrain.cpp index bf2349d6..82e67e09 100644 --- a/terrain/voxel_lod_terrain.cpp +++ b/terrain/voxel_lod_terrain.cpp @@ -1273,7 +1273,7 @@ void VoxelLodTerrain::_process() { shift_up(_reception_buffers.mesh_output, queue_index); } - _stats.pending_block_meshes = (int)_reception_buffers.mesh_output.size(); + _stats.remaining_main_thread_blocks = (int)_reception_buffers.mesh_output.size(); } _stats.time_process_update_responses = profiling_clock.restart(); @@ -1524,7 +1524,7 @@ Dictionary VoxelLodTerrain::_b_get_statistics() const { d["time_request_blocks_to_update"] = _stats.time_request_blocks_to_update; d["time_process_update_responses"] = _stats.time_process_update_responses; - d["pending_block_meshes"] = _stats.pending_block_meshes; + d["remaining_main_thread_blocks"] = _stats.remaining_main_thread_blocks; d["dropped_block_loads"] = _stats.dropped_block_loads; d["dropped_block_meshs"] = _stats.dropped_block_meshs; d["updated_blocks"] = _stats.updated_blocks; diff --git a/terrain/voxel_lod_terrain.h b/terrain/voxel_lod_terrain.h index 075950e5..40b4dfc5 100644 --- a/terrain/voxel_lod_terrain.h +++ b/terrain/voxel_lod_terrain.h @@ -86,7 +86,7 @@ public: int updated_blocks = 0; int dropped_block_loads = 0; int dropped_block_meshs = 0; - int pending_block_meshes = 0; + int remaining_main_thread_blocks = 0; uint64_t time_detect_required_blocks = 0; uint64_t time_request_blocks_to_load = 0; uint64_t time_process_load_responses = 0; diff --git a/terrain/voxel_terrain.cpp b/terrain/voxel_terrain.cpp index f7796753..779a4e3a 100644 --- a/terrain/voxel_terrain.cpp +++ b/terrain/voxel_terrain.cpp @@ -423,7 +423,7 @@ Dictionary VoxelTerrain::_b_get_statistics() const { d["dropped_block_loads"] = _stats.dropped_block_loads; d["dropped_block_meshs"] = _stats.dropped_block_meshs; d["updated_blocks"] = _stats.updated_blocks; - d["pending_block_meshes"] = _stats.pending_block_meshes; + d["remaining_main_thread_blocks"] = _stats.remaining_main_thread_blocks; return d; } @@ -1239,7 +1239,7 @@ void VoxelTerrain::_process() { shift_up(_reception_buffers.mesh_output, queue_index); - _stats.pending_block_meshes = _reception_buffers.mesh_output.size(); + _stats.remaining_main_thread_blocks = _reception_buffers.mesh_output.size(); } _stats.time_process_update_responses = profiling_clock.restart(); diff --git a/terrain/voxel_terrain.h b/terrain/voxel_terrain.h index 689544f4..f526a448 100644 --- a/terrain/voxel_terrain.h +++ b/terrain/voxel_terrain.h @@ -66,7 +66,7 @@ public: int updated_blocks = 0; int dropped_block_loads = 0; int dropped_block_meshs = 0; - int pending_block_meshes = 0; + int remaining_main_thread_blocks = 0; uint64_t time_detect_required_blocks = 0; uint64_t time_request_blocks_to_load = 0; uint64_t time_process_load_responses = 0;