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

rocket: avoid doing 2 or 3 Cvar::Get() trap calls per OnUpdate() call per cvar element #2993

Merged
merged 1 commit into from May 12, 2024

Conversation

illwieckz
Copy link
Member

@illwieckz illwieckz commented May 11, 2024

Avoid doing 2 or 3 Cvar::Get() trap calls per OnUpdate() call per cvar element per frame.

🤦‍♀️️🤦‍♀️️🤦‍♀️️

@illwieckz illwieckz force-pushed the illwieckz/rml-cvar-onupdate branch 3 times, most recently from 5b080d8 to 90629bf Compare May 11, 2024 07:49
@illwieckz illwieckz force-pushed the illwieckz/rml-cvar-onupdate branch from 90629bf to b61d62b Compare May 11, 2024 07:55
@slipher
Copy link
Contributor

slipher commented May 11, 2024

There were only extra calls it the cvar value or attributes changed, right? It wouldn't make much a performance difference in the average case.

@illwieckz illwieckz force-pushed the illwieckz/rml-cvar-onupdate branch from b61d62b to 112b964 Compare May 12, 2024 14:44
@illwieckz illwieckz changed the title rocket: avoid doing 2 or 3 Cvar::Get() trap calls per OnUpdate() call per cvar element per frame rocket: avoid doing 2 or 3 Cvar::Get() trap calls per OnUpdate() call per cvar element May 12, 2024
@illwieckz illwieckz force-pushed the illwieckz/rml-cvar-onupdate branch from 112b964 to fa50c36 Compare May 12, 2024 15:05
@illwieckz illwieckz merged commit 7805e91 into master May 12, 2024
6 checks passed
@illwieckz illwieckz deleted the illwieckz/rml-cvar-onupdate branch May 12, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants