mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
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>
This commit is contained in:
parent
5f1e56ff26
commit
8c40edf8c0
4 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue