Add clarifying comment explaining threads block file system scanning on web.

This commit is contained in:
Edgar 2025-12-28 21:35:21 -05:00
parent 7278190c71
commit 2c29a37840

View file

@ -3756,6 +3756,8 @@ void EditorFileSystem::remove_import_format_support_query(Ref<EditorFileSystemIm
EditorFileSystem::EditorFileSystem() {
#if defined(THREADS_ENABLED) && !defined(WEB_ENABLED)
// On web, threaded scanning blocks the browser's event loop, causing freezes.
// See GH-112072 for details.
use_threads = true;
#endif