Browsing StarfallEx's section
← Back to ACE
πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2019-08-24. It may be informal or outdated β€” anyone can edit this page to improve it. Original discussion

Key-press hook + table vs polling isKeyDown

⭐ StarfallUpdated 2 days agoβ€’0 views
Hooking key events and storing state in a table is better than calling isKeyDown every frame for each key - fewer per-tick checks; list all sf_ convars via cons…

Is it more efficient to hook key presses into a table or poll isKeyDown

Hooking key events and storing state in a table is better than calling isKeyDown every frame for each key - fewer per-tick checks; list all sf_ convars via console autocomplete.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.