Skip to content

Commit 7b7cc1d

Browse files
committed
fix: Added macos file limit based on ulimit -n
1 parent d7d1508 commit 7b7cc1d

File tree

1 file changed

+4
-1
lines changed
  • crates/bevy_asset/src/server

1 file changed

+4
-1
lines changed

crates/bevy_asset/src/server/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ impl AssetServer {
120120
#[cfg(target_os = "ios")]
121121
let file_limit = 127; // The normal limit is 256, cut in half for .meta files and sub 1 because 128 still throws the occasional error (3 failed files out of 1500)
122122

123-
#[cfg(not(target_os = "ios"))]
123+
#[cfg(target_os = "macos")]
124+
let file_limit = 2559;
125+
126+
#[cfg(all(not(target_os = "macos"), not(target_os = "ios")))]
124127
let file_limit = 16000;
125128

126129
Self {

0 commit comments

Comments
 (0)