designer1337 / csgo-cheat-base

simple csgo internal base.
MIT License
242 stars 50 forks source link

avoid many allocations? #50

Open bruhmoment21 opened 4 years ago

bruhmoment21 commented 4 years ago

would this be better if people avoid allocating because of std::string?

bruhmoment21 commented 4 years ago

and i forgot to add #include <string_view>

vxvvxv commented 4 years ago

if the string is 15 characters or less (in visual studio 2019) it wont allocate memory on the heap and instead use a stack buffer

bruhmoment21 commented 4 years ago

if the string is 15 characters or less (in visual studio 2019) it wont allocate memory on the heap and instead use a stack buffer

i think sso doesn t work in debug mode(correct me if im wrong). you could get better fps when debugging

vxvvxv commented 4 years ago

if the string is 15 characters or less (in visual studio 2019) it wont allocate memory on the heap and instead use a stack buffer

i think sso doesn t work in debug mode(correct me if im wrong). you could get better fps when debugging

yeah in debug mode it will allocate

designer1337 commented 4 years ago

whole interface system needs rewrite, gonna push update in few mins