mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
yield at least every frame in the SIMPLE_THREADS case
This commit is contained in:
parent
76b1990ac5
commit
ad2d5e3ba7
@ -805,6 +805,9 @@ render_frame() {
|
|||||||
// running applications.
|
// running applications.
|
||||||
PStatTimer timer(_yield_pcollector, current_thread);
|
PStatTimer timer(_yield_pcollector, current_thread);
|
||||||
Thread::force_yield();
|
Thread::force_yield();
|
||||||
|
} else if (!Thread::is_true_threads()) {
|
||||||
|
PStatTimer timer(_yield_pcollector, current_thread);
|
||||||
|
Thread::consider_yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Anything that happens outside of GraphicsEngine::render_frame()
|
// Anything that happens outside of GraphicsEngine::render_frame()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user