You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The game has an internal limit for the number of dynamic objects that can exist in a scene (MAX_DYNAMIC_SCENE_OBJECTS). The current maximum is 64. Once the limit is exceeded, calls to dynamicSceneAdd() will have no effect, meaning some objects will not appear. This is prohibitive for larger levels such as chamber 15 (#39).
It is possible to increase the limit, but the are also opportunities to reduce the amount of objects. A large contributor against the dynamic object limit in chamber 15 is decor (i.e., observation room furniture). Chamber 15 currently has 33, with 2 more yet to be modelled/added.
Intangible decor objects do not need the overhead that physics-aware decor does. Such objects should be converted into @static level geometry. This may be as simple as changing the object names in level .blend files. If not, it should be done at build time.
Additional context
Dynamic objects are not the same as dynamic collision objects. The latter are just collision, whereas the former are renderable objects with no collision. For example, triggers have dynamic collision but no dynamic object and the energy ball burn marks are the other way around.
The text was updated successfully, but these errors were encountered:
mwpenny
changed the title
Convert intangible decor objects to static geometry at build time
Convert intangible decor objects to static geometry
Jun 5, 2024
Version of the game
Latest (f35bf3d)
What is the enhancement?
The game has an internal limit for the number of dynamic objects that can exist in a scene (
MAX_DYNAMIC_SCENE_OBJECTS
). The current maximum is 64. Once the limit is exceeded, calls todynamicSceneAdd()
will have no effect, meaning some objects will not appear. This is prohibitive for larger levels such as chamber 15 (#39).It is possible to increase the limit, but the are also opportunities to reduce the amount of objects. A large contributor against the dynamic object limit in chamber 15 is decor (i.e., observation room furniture). Chamber 15 currently has 33, with 2 more yet to be modelled/added.
Intangible decor objects do not need the overhead that physics-aware decor does. Such objects should be converted into
@static
level geometry. This may be as simple as changing the object names in level.blend
files. If not, it should be done at build time.Additional context
The text was updated successfully, but these errors were encountered: