Skip to content

Add support for memory statistic queries.#184

Merged
crud89 merged 4 commits intomainfrom
dev/memory-statistics
Oct 10, 2025
Merged

Add support for memory statistic queries.#184
crud89 merged 4 commits intomainfrom
dev/memory-statistics

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented Oct 10, 2025

Describe the pull request

This PR adds support for two memory statistic queries: IGraphicsFactory::memoryStatistics and IGraphicsFactory::detailedMemoryStatistics. The first one can be used multiple times per frame, but is incomplete and might not contain accurate values. The second one should only be used during debugging, as it might involve performance penalties. Internally, the methods call the getBudget and calculateStatistics methods of the memory allocator libraries.

Related issues

@crud89 crud89 added this to the Alpha #05 milestone Oct 10, 2025
@crud89 crud89 self-assigned this Oct 10, 2025
@crud89 crud89 added Vulkan πŸŒ‹ The issue involves the Vulkan backend. DX12 ❎ The issue involves the DX12 backend. labels Oct 10, 2025
@crud89 crud89 added this to LiteFX Oct 10, 2025
@crud89 crud89 moved this to In Progress in LiteFX Oct 10, 2025
@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented Oct 10, 2025

Run: checks

@crud89 crud89 merged commit 9a5c3d2 into main Oct 10, 2025
9 checks passed
@crud89 crud89 deleted the dev/memory-statistics branch October 10, 2025 14:01
@crud89 crud89 moved this from In Progress to v0.5.1 in LiteFX Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DX12 ❎ The issue involves the DX12 backend. Vulkan πŸŒ‹ The issue involves the Vulkan backend.

Projects

Status: v0.5.1

Development

Successfully merging this pull request may close these issues.

Query memory statistics.

1 participant