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

Add option to save nuklear font texture between BasicNuklearGui instances #490

Merged
merged 6 commits into from
Jun 25, 2021

Conversation

itszn
Copy link
Collaborator

@itszn itszn commented Jun 19, 2021

This option has BasicNuklearGui instances share the same font atlas and font texture. Additionally there are two changes which improve the time it takes to initialize the nuklear font texture:

  • Font baking is done in a background thread at startup if the option is enabled
  • A pixel buffer is used to asynchronously upload a font texture (on non embedded builds)

From testing the font texture is about 250mb currently so this option is disabled by default on embedded

@itszn itszn merged commit 98e3d12 into develop Jun 25, 2021
@itszn itszn deleted the feat/save-font branch June 25, 2021 00:29
Hoshikara added a commit to Hoshikara/unnamed-sdvx-clone that referenced this pull request May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant