-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
🚧Improve font rendering and text measuring performance #626
Comments
This issue has been automatically marked as stale due to the lack of activity for 60 days. The issue will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of activity for 60 days. The issue will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of activity for 60 days. The issue will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of activity for 60 days. The issue will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale due to the lack of activity for 60 days. The issue will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This stale issue has been closed due to a lack of activity. |
Complete The Item Below
Description
Improve the performance and reduce the memory allocations of the font rendering and text measuring process.
The font rendering process currently generates a decent amount of allocations due to the manipulation of text and its measuring in the text rendering process. These allocations can be reduced by simply converting the incoming text characters to a
Span<char>
type and using the span instead of thestring
directly.The areas of interest will be the
private
method namedRenderBase()
in theFontRenderer
class and theMeasure()
method in theFont
class. Anywhere in theFont.Measure()
call stack needs to be analyzed and improved. Most likely, introducing theSpan<char>
type will have a snowball effect throughout the system.Acceptance Criteria
FontRenderer
class improvedFont
class improvedToDo Items
Issue Dependencies
Related Work
No response
Additional Information:
Change Type Labels
🐛bug
🧨breaking changes
✨new feature
♻️cicd
🗒️documentation/code
📝documentation/product
Priority Type Labels
low priority
medium priority
high priority
Code of Conduct
The text was updated successfully, but these errors were encountered: