diff --git a/world/terra_chunk.cpp b/world/terra_chunk.cpp index 84e9298..c4b8522 100644 --- a/world/terra_chunk.cpp +++ b/world/terra_chunk.cpp @@ -35,13 +35,6 @@ SOFTWARE. #include "../../thread_pool/thread_pool.h" #endif -_FORCE_INLINE_ bool TerraChunk::get_is_build_threaded() const { - return _is_build_threaded; -} -_FORCE_INLINE_ void TerraChunk::set_is_build_threaded(const bool value) { - _is_build_threaded = value; -} - _FORCE_INLINE_ bool TerraChunk::get_process() const { return _is_processing; } @@ -985,7 +978,6 @@ Vector3 TerraChunk::to_global(Vector3 p_local) const { } TerraChunk::TerraChunk() { - _is_build_threaded = false; _is_processing = false; _is_phisics_processing = false; _is_in_tree = false; @@ -1228,10 +1220,6 @@ void TerraChunk::_bind_methods() { ClassDB::bind_method(D_METHOD("is_in_tree"), &TerraChunk::is_in_tree); - ClassDB::bind_method(D_METHOD("get_is_build_threaded"), &TerraChunk::get_is_build_threaded); - ClassDB::bind_method(D_METHOD("set_is_build_threaded", "value"), &TerraChunk::set_is_build_threaded); - ADD_PROPERTY(PropertyInfo(Variant::BOOL, "is_build_threaded", PROPERTY_HINT_NONE, "", 0), "set_is_build_threaded", "get_is_build_threaded"); - ClassDB::bind_method(D_METHOD("get_transform"), &TerraChunk::get_transform); ClassDB::bind_method(D_METHOD("set_transform", "value"), &TerraChunk::set_transform); ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform"), "set_transform", "get_transform"); diff --git a/world/terra_chunk.h b/world/terra_chunk.h index 624a29f..7d720ad 100644 --- a/world/terra_chunk.h +++ b/world/terra_chunk.h @@ -83,9 +83,6 @@ public: }; public: - bool get_is_build_threaded() const; - void set_is_build_threaded(const bool value); - bool get_process() const; void set_process(const bool value); @@ -334,8 +331,6 @@ protected: */ static void _bind_methods(); - bool _is_build_threaded; - bool _is_processing; bool _is_phisics_processing; diff --git a/world/terra_world.cpp b/world/terra_world.cpp index ab2ea54..a0a0d7d 100644 --- a/world/terra_world.cpp +++ b/world/terra_world.cpp @@ -357,10 +357,6 @@ Ref TerraWorld::_create_chunk(const int x, const int z, Refset_voxel_world(this); - //TODO this will need to be changed - if (chunk->has_method("set_is_build_threaded")) - chunk->call("set_is_build_threaded", _use_threads); - chunk->set_position(x, z); chunk->set_world_height(_world_height); chunk->set_library(_library); diff --git a/world/terra_world.h b/world/terra_world.h index 203817a..d5561c1 100644 --- a/world/terra_world.h +++ b/world/terra_world.h @@ -251,7 +251,6 @@ private: NodePath _player_path; Spatial *_player; - bool _use_threads; int _max_concurrent_generations; Vector > _generation_queue; Vector > _generating;