portal64-still-alive
portal64-still-alive copied to clipboard
Convert intangible decor objects to static geometry
Version of the game
Latest (f35bf3d2a2fbc62c08df614dc258da1ae8119d43)
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 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.