PivityGmodStore

Configuring door draw distance.

Before you configure the draw distance for doors you should understand the basics of how it works. Many addons use a single draw distance for the doors. PrimeHUD uses a system which varies the draw distance between a minimum (default 250) and a maximum (default 500) distance based on how many doors are drawn.

This helps increase FPS in areas with more doors, while keeping the draw distance high in areas that don't have many doors. By default once more than 7 doors are drawn per frame, it starts to reduce the draw distance. Individual clients can configure this via the primehud_doorinfo_dynamicdist console variable. Setting it lower will increase FPS in areas with many doors (Like a stairwell filled with doors), and setting it higher will make it so more doors are rendered at once at the cost of FPS.


To change the minimum and maximum door rendering distance, you must open prime_hud/lua/hud/client/cl_door_skin.lua and find local max_draw_dist. Set the value equal to the distance squared (e.g 700*700 to set the distance to 700 units).

For now, any time you replace the cl_door_skin.lua file with an updated version you'll have to go back and change the numbers. In a future update the configuration will be added to the config.lua file.