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

core/memory: Pooled memory implementation #1085

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

polybiusproxy
Copy link
Collaborator

Pooled memory is, under the hood, direct memory partitioned in 64 KiB blocks, with the difference that developers don't have to be aware of physical addresses and only care about the virtual address space, which can make allocations easier for the developer.

The memory pool can be expanded (direct memory is allocated for pool usage and can no longer be used as normal direct memory), reserved (reserved area must be aligned to 2MB or a multiple of it), committed, and decommitted.

This PR lacks memory pool batching and getting block statistics, but I haven't seen any game using these.
Frequently used by newer revisions of Unreal Engine.

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.

1 participant