pev/set_pev or entity_get/entity_set
What is faster/better?
pev/set_pev (Fakemeta) or entity_get/entity_set (Engine)? |
Re: pev/set_pev or entity_get/entity_set
entity_* should be very slightly faster, because it's like entity_get_[string,int,float] ...
|
Re: pev/set_pev or entity_get/entity_set
But this type of optimization sounds trivial.
|
Re: pev/set_pev or entity_get/entity_set
Just use, what is easier for you. It's 0.001 difference.
Use that module, witch's native is most efficient. |
Re: pev/set_pev or entity_get/entity_set
Quote:
Thanks for replies. |
Re: pev/set_pev or entity_get/entity_set
Still, you should understand that if a engine native cand do it from one call and fakemeta can do it with 2+ calls, it's better to use the engine native, even if you use fakemeta stuff everywhere.
For example, fm_* stocks from fakemeta utils does the same thing only slower than their engine counterparts, so it's better just to use engine for them. |
Re: pev/set_pev or entity_get/entity_set
Quote:
|
Re: pev/set_pev or entity_get/entity_set
I would say that if you don't have the more efficient method memorized then just get it working then and can optimize later on such a trivial situation.
|
Re: pev/set_pev or entity_get/entity_set
Quote:
|
Re: pev/set_pev or entity_get/entity_set
Quote:
I like to have something working so that I can debug other things that are more important so I use what I know works then can choose to either optimize or not depending on my knowledge and relavence. |
| All times are GMT -4. The time now is 03:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.