Level Performance Improvements

From Reflex Wiki
Jump to: navigation, search

How to Increase performance on your level?

Try to minimize the use of overlapping lights and lights that project into areas the player can not see.

First make sure you have dynamic lights enabled r_dynamic_lights 1

Use the console command r_showlights 1 to see how far your lights are projecting and how wide of an area they are covering.

When the grey cones or spheres intersect they drastically decrease performance on your map. You can reduce this performance hit by decreasing the draw distance of the light as well as the angle of the outer cone if they are spotlights. When you decrease the distance you will notice they are not as bright, so make sure to increase the brightness to get it to your preference.

You should also consider if the light needs to cast a shadow. If the light doesn't occlude anything, there no need for it to be taking up frame time calculating shadows. You can disable the shadow option for each individual light with the "cast shadow" check box.

When you utilize a lot of meshes sometimes it can be a performance hit. One thing to do is check how many verts are being rendered with the console command r_stats 1

Currently I recommend keeping it under 15-10m verts.

Something else to use is r_profiler 2 to see what is eating up the most frame rendering time.

Something to note, in the future certain reflective materials like aluminium and brass may take up more frame time as newborn has said in the past that they might improve the graphic fidelity of reflections. So I would try to avoid making a map that has overly large areas covered in metal materials. You should take this into account when placing a material on a brush as to only use the metal materials on sides the player can see.