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

MEMORY: Hunk ergonomics. #975

Merged
merged 2 commits into from
Dec 12, 2024
Merged

MEMORY: Hunk ergonomics. #975

merged 2 commits into from
Dec 12, 2024

Conversation

dsvensson
Copy link
Collaborator

Exposes hunk_print to the client, names previousyl unnamed allocations and drops dead code to save memory.

Also names some previously unnamed allocations. Useful for mappers
to see how much memory various game data uses in a map. This used
to be a server-only command.

In addition to exposing the command, the current allocations are
also printed on OOM, and will be found in qconsole.log.
* drawflat_chain was dead code.
* all chains except next are unused by modern renderer.

Reduces total glpoly_s allocations by 15% if classic renderer is disabled.
@tcsabina tcsabina merged commit 93e6660 into QW-Group:master Dec 12, 2024
6 checks passed
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.

2 participants