mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
default non-threaded
This commit is contained in:
parent
5f271d85c6
commit
064f62f202
@ -205,7 +205,10 @@ run_python() {
|
|||||||
// it should be.
|
// it should be.
|
||||||
AsyncTaskManager *task_mgr = AsyncTaskManager::get_global_ptr();
|
AsyncTaskManager *task_mgr = AsyncTaskManager::get_global_ptr();
|
||||||
PT(AsyncTaskChain) chain = task_mgr->make_task_chain("JavaScript");
|
PT(AsyncTaskChain) chain = task_mgr->make_task_chain("JavaScript");
|
||||||
chain->set_num_threads(1);
|
|
||||||
|
// The default is not threaded (num_threads == 0), but if the app
|
||||||
|
// programmer decides to enable threads, the default is TP_low
|
||||||
|
// priority.
|
||||||
chain->set_thread_priority(TP_low);
|
chain->set_thread_priority(TP_low);
|
||||||
|
|
||||||
PyObject *check_comm = PyObject_GetAttrString(p3dpython, "check_comm");
|
PyObject *check_comm = PyObject_GetAttrString(p3dpython, "check_comm");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user