Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize convar cache for FindConVar. #27

Merged
merged 1 commit into from
Jun 12, 2014

Conversation

voided
Copy link
Contributor

@voided voided commented Jun 5, 2014

Following the discussion in #6, FindConVar should first check SM's convar cache before traversing Source's linked list of convars to find a specific one.

@KyleSanderson
Copy link
Member

It looks like when the convar manager was initially written, handles persisted even after the convar was destroyed; I believe I've even read documentation to this regard. However, it looks like the cache is destroyed if the convar no longer exists: which means this is probably fine.

EDIT: I'd appreciate it if someone glanced at the engine code surrounding this, but :shipit: works as well.

@psychonic
Copy link
Member

I don't foresee any real issues here unless SM misses convars being unregistered, in which case other things would be breaking.

psychonic added a commit that referenced this pull request Jun 12, 2014
Utilize convar cache for FindConVar (r=KyleS, r=psychonic)..
@psychonic psychonic merged commit 7677e8a into alliedmodders:master Jun 12, 2014
@voided voided deleted the convar-cache branch June 19, 2014 04:29
This was referenced Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants