Skip to content

mullion/winemetal: cap idle dynamic allocation pools and fix ColorSync CFRelease leaks - #365

Open
cyyever wants to merge 1 commit into
dttdrv:mainfrom
cyyever:pr/dynamic-pool-cap-colorsync-leak
Open

cyyever wants to merge 1 commit into
dttdrv:mainfrom
cyyever:pr/dynamic-pool-cap-colorsync-leak

Conversation

@cyyever

@cyyever cyyever commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Cap idle reuse pools in DynamicBuffer::allocate() and DynamicLinearTexture::allocate() (src/mullion/mullion_dynamic.cpp) at kMaxIdleDynamicAllocations = 2 (enough for triple-buffered frames in flight), popping excess already-coherent entries so burst MAP_DISCARD spikes do not pin GPU memory indefinitely.
  • Release CFDataRef tag_data on every return path in GetChromaticity_xy() (src/winemetal/unix/winemetal_unix.c), and release both the display ColorSyncProfileRef and fallback generic RGB profile in _WMTGetDisplayDescription().

Verification

  • Syntax-checked src/mullion/mullion_dynamic.cpp with x86_64-w64-mingw32-g++ -std=c++20 -Wall -Wextra.

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