ability to run 2D physics in a thread
also, 2D physics is now thread safe too. see physics_2d/thread_model
This commit is contained in:
@ -1177,7 +1177,7 @@ void OS_Windows::initialize(const VideoMode& p_desired,int p_video_driver,int p_
|
||||
physics_server = memnew( PhysicsServerSW );
|
||||
physics_server->init();
|
||||
|
||||
physics_2d_server = memnew( Physics2DServerSW );
|
||||
physics_2d_server = Physics2DServerWrapMT::init_server<Physics2DServerSW>();
|
||||
physics_2d_server->init();
|
||||
|
||||
if (!is_no_window_mode_enabled()) {
|
||||
@ -1375,6 +1375,9 @@ void OS_Windows::finalize() {
|
||||
physics_2d_server->finish();
|
||||
memdelete(physics_2d_server);
|
||||
|
||||
joystick_change_queue.clear();
|
||||
monitor_info.clear();
|
||||
|
||||
}
|
||||
void OS_Windows::finalize_core() {
|
||||
|
||||
@ -2052,7 +2055,7 @@ String OS_Windows::get_executable_path() const {
|
||||
wchar_t bufname[4096];
|
||||
GetModuleFileNameW(NULL,bufname,4096);
|
||||
String s= bufname;
|
||||
print_line("EXEC PATHP<EFBFBD><EFBFBD>: "+s);
|
||||
print_line("EXEC PATHP??: "+s);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user