csgo-cheat-base icon indicating copy to clipboard operation
csgo-cheat-base copied to clipboard

avoid many allocations?

Open bruhmoment21 opened this issue 4 years ago • 5 comments

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

bruhmoment21 avatar Jun 30 '20 10:06 bruhmoment21

and i forgot to add #include <string_view>

bruhmoment21 avatar Jun 30 '20 10:06 bruhmoment21

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

vxvvxv avatar Jun 30 '20 11:06 vxvvxv

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

bruhmoment21 avatar Jun 30 '20 11:06 bruhmoment21

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

vxvvxv avatar Jun 30 '20 11:06 vxvvxv

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

designer1337 avatar Jul 02 '20 18:07 designer1337