summaryrefslogtreecommitdiffstats
path: root/platform/web
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-16 00:21:31 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-16 21:00:04 +0200
commit8c40edf8c04cacfc88b77e80a541c648d1c2261c (patch)
treef901b77e1f8e632f068ea501dab8a5e44d2aff67 /platform/web
parent5f1e56ff26be4070496aa51095b9ac2f2b4f4ed8 (diff)
downloadredot-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.py2
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.