halflife_time - fakemeta
Hi:)
Engine way: PHP Code:
:| |
Re: halflife_time - fakemeta
Wrong section. Moved.
Also, this is the equivalent. Code:
get_gametime() |
Re: halflife_time - fakemeta
new Float:fNow
global_get(glb_time,fnow) |
Re: halflife_time - fakemeta
Thanks.
|
Re: halflife_time - fakemeta
get_gametime() from core is slightly faster than glb from fakemeta
|
Re: halflife_time - fakemeta
Quote:
|
Re: halflife_time - fakemeta
I'm not a pro, when you see the source code for both native, get_gametime() returns directly the time ( I mean without any checks or others ) when global_get works differently and has more checks. So I can assume that get_gametime() would be a bit more faster.
Code:
Code:
|
Re: halflife_time - fakemeta
Many fakemeta methods are slower. A lot of scripters were sold a lie by people who shouldn't have been giving advice on the matter. Have you ever seen sawce say that all legacy engine/fun code would be faster written with fakemeta? High level code can only be used well if you understand what has been abstracted. Read AMXX source code and remember that native calls aren't free.
|
Re: halflife_time - fakemeta
Quote:
I agree that there's no need to convert old code to FM. But because it's much more powerful than engine,there's no reason,at least for me,to start new projects using engine. But that's just me. |
Re: halflife_time - fakemeta
That's awfully political of you, Lee.
|
| All times are GMT -4. The time now is 05:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.