Skip to content

fix: cache NVIDIA font descriptors to prevent app hang - #8

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/cache-nvidia-fonts
Open

fix: cache NVIDIA font descriptors to prevent app hang#8
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix/cache-nvidia-fonts

Conversation

@sentry

@sentry sentry Bot commented Jul 17, 2026

Copy link
Copy Markdown

This PR addresses an app hang (2000ms+) identified as OPENNOW-MAC-1Y. The root cause was the synchronous loading and conversion of WOFF2 font files on the main thread during every layout pass within OpenNOWNVIDIAFont.loadDescriptor.

The fix introduces static caching for the CTFontDescriptor objects. Now, the font files are read from disk and converted only once per application lifetime, and subsequent requests retrieve the cached descriptor. This eliminates redundant disk I/O and CPU-intensive font conversion on the main thread, resolving the app hang.

Fixes OPENNOW-MAC-1Y

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.

0 participants