-Fix disable_3d flag

-Add extra flag optimize=[size,speed] to be able to prioritize size
This commit is contained in:
Juan Linietsky
2018-07-21 17:26:14 -03:00
parent cfcb6e11f2
commit 2b9902db06
12 changed files with 97 additions and 33 deletions

View File

@@ -1367,6 +1367,8 @@ void PhysicsServerSW::init() {
void PhysicsServerSW::step(real_t p_step) {
#ifndef _3D_DISABLED
if (!active)
return;
@@ -1387,6 +1389,7 @@ void PhysicsServerSW::step(real_t p_step) {
active_objects += E->get()->get_active_objects();
collision_pairs += E->get()->get_collision_pairs();
}
#endif
}
void PhysicsServerSW::sync(){
@@ -1395,6 +1398,8 @@ void PhysicsServerSW::sync(){
void PhysicsServerSW::flush_queries() {
#ifndef _3D_DISABLED
if (!active)
return;
@@ -1441,6 +1446,7 @@ void PhysicsServerSW::flush_queries() {
ScriptDebugger::get_singleton()->add_profiling_frame_data("physics", values);
}
#endif
};
void PhysicsServerSW::finish() {