Thread
:
[TF2] Building Size Randomizer
View Single Post
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
11-13-2013 , 11:28 Re: [TF2] Building Size Randomizer
#
24
Quote:
Originally Posted by
asherkin
The code in here is quite inefficient.
OnConfigsExecuted is called a huge number of times, reading every cvar each time, completely negating the benefit from caching the values.
The building type checks are ALL run every time with no early exit, and the code could be cleaned up by only having one call to SetEntProp at the end.
Updated.
Pelipoika
View Public Profile
Send a private message to Pelipoika
Find More Posts by Pelipoika