Quote:
Originally Posted by hmmmmm
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
__________________