diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-16 00:21:31 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-16 21:00:04 +0200 |
commit | 8c40edf8c04cacfc88b77e80a541c648d1c2261c (patch) | |
tree | f901b77e1f8e632f068ea501dab8a5e44d2aff67 /platform/web | |
parent | 5f1e56ff26be4070496aa51095b9ac2f2b4f4ed8 (diff) | |
download | redot-engine-8c40edf8c04cacfc88b77e80a541c648d1c2261c.tar.gz |
Web: Disable raycast module by default (no occlusion culling)
This means no CPU occlusion culling (and not compiling Embree), unless
you compile custom export templates with `module_raycast_enabled=yes`.
This reduces the memory footprint significantly, and binary size.
Fixes #70621.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Diffstat (limited to 'platform/web')
-rw-r--r-- | platform/web/detect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/web/detect.py b/platform/web/detect.py index 7b2e5646d6..9358eb61b0 100644 --- a/platform/web/detect.py +++ b/platform/web/detect.py @@ -60,6 +60,8 @@ def get_flags(): ("target", "template_debug"), ("builtin_pcre2_with_jit", False), ("vulkan", False), + # Embree is heavy and requires too much memory (GH-70621). + ("module_raycast_enabled", False), # Use -Os to prioritize optimizing for reduced file size. This is # particularly valuable for the web platform because it directly # decreases download time. |