Raised This Month: $ Target: $400
 0% 

FM_CmdStart and client_PreThink


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 03-09-2017 , 07:18   FM_CmdStart and client_PreThink
Reply With Quote #1

I was on the move to update some forward in some plugins, for performance reasons.

I saw many usage of client_PreThink + get_user_button for the only purpose of getting what button is used at this very moment.

Since CmdStart, if i remember right, is called at the same frame and the same number of time as client_prethink, since CmdStart can directly pass the button in a uc_handle

What is better ?

client_prethink + get_user_button
or CmdStart + get_uc(uc_handle, UC_Buttons)

Last edited by Fr33m@n; 03-09-2017 at 07:18.
Fr33m@n is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:52.


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