HeroEngine Forums

HeroEngine Support => Design & World Building => Topic started by: Prometheus2012 on Nov 03, 16, 12:41:12 AM

Title: Turning off all physics type and physics shape - performance gain?
Post by: Prometheus2012 on Nov 03, 16, 12:41:12 AM
Would there be a performance increase if we turn off physics type and physics shape for any objects that a player would not be coming into contact. Things such as lights on the ceiling or high up objects.
Title: Re: Turning off all physics type and physics shape - performance gain?
Post by: ToY-Krun on Nov 03, 16, 06:24:23 AM
im not sure "how much" performance you'd gain but it would definitely be a boost of some amount if the physics server doesnt have to deal with an object.

Its sort of like assigning pathing for models as well, models that are set to ignore dont get bothered with by the navigation mesh system.

might be a good topic to expand on, as there are many options which designers may find useful to turn off/on on models which may improve performance.
Title: Re: Turning off all physics type and physics shape - performance gain?
Post by: nocake on Nov 03, 16, 02:53:41 PM
Simple answer is yes.

As well if you do need to have physics on and it it is a basic shape change the type to the shape it matches.

As far as my testing goes the physics property is represented on both the client and the server.

Less objects the better.


BTW if you do not know you can "Add Back" models to your library so they retain the properties you set for them.

Always import your model, place it into the world, set the properties properly, then right click your library and select "Add Back" or something.

This will take the object you have selected and its properties and create a new icon in the library to represent that saved object.

If you have already placed these objects you can copy and paste properties through the asset viewer.
Title: Re: Turning off all physics type and physics shape - performance gain?
Post by: Prometheus2012 on Nov 03, 16, 04:36:11 PM
Anything to boost performance even if slightly is a bonus.

say you have 50-100 props in an area that the player would never touch, thats 50 less objects that need to be bothered for collision and physics. Should be a somewhat slight gain but a gain none the less eh.

Was also looking at visibility and shadows.

Default everything casts and receives shadows, looking at which objects you can get away with turning these settings to off must also help.

As to visibility, there are 4 settings of World and Map, World, Map, None. You can look at turning many objects such as small props to world only so they are not rendered in the default map system that comes with HE. Again maybe another small boost.