View Single Post
IT_KILLER
Member
Join Date: Jul 2017
Old 12-30-2017 , 11:35   Re: [CS:GO/CS:S] Hide teammates 1.1 (UPDATED 2017-12-30)
Reply With Quote #3

Quote:
Originally Posted by hmmmmm View Post
If you're that focused on making this as performant as possible, you should avoid doing a squareroot when youre just using it to compare.

e.g. https://github.com/IT-KiLLER/CSGO-Hi...s.sp#L173-L174
Change that false to true in GetVectorDistance and instead square the g_dHide value.

In the end, it probably isn't that big a deal, but it's an easy optimization.
Thank you for your tips. You're right, it would be smarter to do that.
I'll do it in the next update.
Thank you for your code review, I appreciate it.

EDIT: This is now fixed in version 1.1.1
__________________
If you have any suggestions for improvement, let me know. I appreciate all feedback.
>>> GITHUB <<<

Last edited by IT_KILLER; 12-30-2017 at 11:59.
IT_KILLER is offline