Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: Hawk552
Forum: Code Snippets/Tutorials 04-22-2009, 08:14
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

Run them separately. It's not fair the way you have it set up since fm_strip_user_weapons() and fm_give_item() have no work to do.
Forum: Code Snippets/Tutorials 04-20-2009, 14:29
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

Running two forwards like that is probably slower than just using is_user_alive() wherever you need it (unless you're checking it in client_PreThink or some other forward that's called very...
Forum: Code Snippets/Tutorials 03-30-2009, 20:02
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

Completely agreed. Let's not get an "Engine high" going.
Forum: Code Snippets/Tutorials 03-30-2009, 15:18
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

Heh, someone want to edit this?
Forum: Code Snippets/Tutorials 03-30-2009, 11:32
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

Well, we can wait for someone to come along.
Forum: Code Snippets/Tutorials 03-30-2009, 11:09
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

Actually, after thinking about it, I realized that it probably does a lookup on the creation of the client_PreThink forward for each instance of it in each plugin, then stores them once it's done....
Forum: Code Snippets/Tutorials 03-30-2009, 11:02
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

If it takes less time for all of the equivalent functions to be found and then executed from front to back with identical code inside them, then you can consider that forward faster than the one...
Forum: Code Snippets/Tutorials 03-30-2009, 10:47
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

As far as I know, it's profiling how long it actually takes for it to execute the function from front to back. I don't think it includes how long it takes to actually find it, though.



Well,...
Forum: Code Snippets/Tutorials 03-30-2009, 09:49
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

I don't think that's a fair test since you're basically benchmarking CreateOneForward against CreateMultiForward. If you create a bunch of plugins which use client_PreThink, it will likely be faster....
Forum: Code Snippets/Tutorials 03-30-2009, 08:24
Replies: 121
Views: 158,869
Posted By Hawk552
Re: [TUT] Modules and efficient scripting

I'm not sure but I'd guess that client_PreThink() becomes much faster once there's more than one plugin using it, since it's a multiforward.
Showing results 1 to 10 of 10

 
Forum Jump

All times are GMT -4. The time now is 19:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode