Merge pull request #98383 from RandomShaper/deprecate_unsafe_th_rend

Deprecate the pointless unsafe threading model for rendering
This commit is contained in:
Thaddeus Crews
2024-12-03 14:40:56 -06:00
5 changed files with 40 additions and 26 deletions

View File

@@ -885,7 +885,7 @@ bool ResourceLoader::_ensure_load_progress() {
// Some servers may need a new engine iteration to allow the load to progress.
// Since the only known one is the rendering server (in single thread mode), let's keep it simple and just sync it.
// This may be refactored in the future to support other servers and have less coupling.
if (OS::get_singleton()->get_render_thread_mode() == OS::RENDER_SEPARATE_THREAD) {
if (OS::get_singleton()->is_separate_thread_rendering_enabled()) {
return false; // Not needed.
}
RenderingServer::get_singleton()->sync();