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

fix: Adjust font cache to prevent downward spiral on mobile #2850

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

eonarheim
Copy link
Member

@eonarheim eonarheim commented Dec 21, 2023

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

This PR fixes a downward spiral that is possible on platforms with a slow couple frames. The FontCache font timeout to 500 ms and makes it configurable as a static FontCache.FONT_TIMEOUT. This is to help prevent a downward spiral on mobile devices that might take a long while to render a few starting frames causing the cache to repeatedly clear and never recover.

@github-actions github-actions bot added the bug This issue describes undesirable, incorrect, or unexpected behavior label Dec 21, 2023
@eonarheim eonarheim merged commit cbb287a into main Dec 21, 2023
6 checks passed
@eonarheim eonarheim deleted the fix/font-cache-downward-spiral-on-mobile branch December 21, 2023 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant