You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Several performance improvements, mainly in loading and instancing scenes and resources.
A general speedup should be apparent, with even more peformance increase when compiling optimized. WARNING: Tested and it seems to work, but if something breaks, please report.
This commit is contained in:
@@ -258,12 +258,15 @@ bool Object::_predelete() {
|
||||
|
||||
_predelete_ok=1;
|
||||
notification(NOTIFICATION_PREDELETE,true);
|
||||
if (_predelete_ok) {
|
||||
_type_ptr=NULL; //must restore so destructors can access type ptr correctly
|
||||
}
|
||||
return _predelete_ok;
|
||||
|
||||
}
|
||||
|
||||
void Object::_postinitialize() {
|
||||
|
||||
_type_ptr=_get_type_namev();
|
||||
_initialize_typev();
|
||||
notification(NOTIFICATION_POSTINITIALIZE);
|
||||
|
||||
@@ -1707,7 +1710,7 @@ bool Object::is_edited() const {
|
||||
|
||||
Object::Object() {
|
||||
|
||||
|
||||
_type_ptr=NULL;
|
||||
_block_signals=false;
|
||||
_predelete_ok=0;
|
||||
_instance_ID=0;
|
||||
|
||||
Reference in New Issue
Block a user