Rename get_stats()
=> get_statistics()
This commit is contained in:
parent
c13c0fbf20
commit
a0c7201fcd
@ -1466,7 +1466,7 @@ void VoxelMesherDMC::build(VoxelMesher::Output &output, const VoxelBuffer &voxel
|
||||
// - Voxel data must be padded
|
||||
// - The non-padded area size is cubic and power of two
|
||||
|
||||
_stats = { };
|
||||
_stats = {};
|
||||
|
||||
if (voxels.is_uniform(VoxelBuffer::CHANNEL_ISOLEVEL)) {
|
||||
// That won't produce any polygon
|
||||
@ -1601,7 +1601,7 @@ VoxelMesher *VoxelMesherDMC::clone() {
|
||||
return c;
|
||||
}
|
||||
|
||||
Dictionary VoxelMesherDMC::get_stats() const {
|
||||
Dictionary VoxelMesherDMC::get_statistics() const {
|
||||
Dictionary d;
|
||||
d["octree_build_time"] = _stats.octree_build_time;
|
||||
d["dualgrid_derivation_time"] = _stats.dualgrid_derivation_time;
|
||||
@ -1624,7 +1624,7 @@ void VoxelMesherDMC::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_seam_mode", "mode"), &VoxelMesherDMC::set_seam_mode);
|
||||
ClassDB::bind_method(D_METHOD("get_seam_mode"), &VoxelMesherDMC::get_seam_mode);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_stats"), &VoxelMesherDMC::get_stats);
|
||||
ClassDB::bind_method(D_METHOD("get_statistics"), &VoxelMesherDMC::get_statistics);
|
||||
|
||||
BIND_ENUM_CONSTANT(MESH_NORMAL);
|
||||
BIND_ENUM_CONSTANT(MESH_WIREFRAME);
|
||||
|
@ -104,7 +104,7 @@ public:
|
||||
void build(VoxelMesher::Output &output, const VoxelBuffer &voxels, int padding) override;
|
||||
int get_minimum_padding() const override;
|
||||
|
||||
Dictionary get_stats() const;
|
||||
Dictionary get_statistics() const;
|
||||
|
||||
VoxelMesher *clone() override;
|
||||
|
||||
|
@ -82,7 +82,7 @@ void VoxelStream::_immerge_block(Ref<VoxelBuffer> buffer, Vector3 origin_in_voxe
|
||||
immerge_block(buffer, Vector3i(origin_in_voxels), lod);
|
||||
}
|
||||
|
||||
VoxelStream::Stats VoxelStream::get_stats() const {
|
||||
VoxelStream::Stats VoxelStream::get_statistics() const {
|
||||
return _stats;
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
virtual bool is_thread_safe() const;
|
||||
virtual bool is_cloneable() const;
|
||||
|
||||
Stats get_stats() const;
|
||||
Stats get_statistics() const;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
@ -90,7 +90,7 @@ void VoxelDataLoader::process_blocks_thread_func(const ArraySlice<InputBlock> in
|
||||
stream->emerge_blocks(emerge_requests);
|
||||
stream->immerge_blocks(immerge_requests);
|
||||
|
||||
VoxelStream::Stats stream_stats = stream->get_stats();
|
||||
VoxelStream::Stats stream_stats = stream->get_statistics();
|
||||
stats.file_openings = stream_stats.file_openings;
|
||||
stats.time_spent_opening_files = stream_stats.time_spent_opening_files;
|
||||
|
||||
|
@ -918,7 +918,7 @@ void VoxelLodTerrain::_process() {
|
||||
_stats.time_process_lod = profiling_clock.restart();
|
||||
}
|
||||
|
||||
Dictionary VoxelLodTerrain::get_stats() const {
|
||||
Dictionary VoxelLodTerrain::get_statistics() const {
|
||||
|
||||
Dictionary process;
|
||||
process["time_request_blocks_to_load"] = _stats.time_request_blocks_to_load;
|
||||
@ -967,7 +967,7 @@ void VoxelLodTerrain::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_block_region_extent"), &VoxelLodTerrain::get_block_region_extent);
|
||||
ClassDB::bind_method(D_METHOD("get_block_info", "block_pos", "lod"), &VoxelLodTerrain::get_block_info);
|
||||
ClassDB::bind_method(D_METHOD("get_stats"), &VoxelLodTerrain::get_stats);
|
||||
ClassDB::bind_method(D_METHOD("get_statistics"), &VoxelLodTerrain::get_statistics);
|
||||
ClassDB::bind_method(D_METHOD("voxel_to_block_position", "lod_index"), &VoxelLodTerrain::voxel_to_block_position);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("_on_stream_params_changed"), &VoxelLodTerrain::_on_stream_params_changed);
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
int dropped_block_meshs = 0;
|
||||
};
|
||||
|
||||
Dictionary get_stats() const;
|
||||
Dictionary get_statistics() const;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
Loading…
x
Reference in New Issue
Block a user