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

Some fixes #287

Merged
merged 2 commits into from
Aug 6, 2022
Merged

Some fixes #287

merged 2 commits into from
Aug 6, 2022

Conversation

Willy-JL
Copy link
Contributor

@Willy-JL Willy-JL commented Aug 2, 2022

  • Now is_item_deactivated returns the actual value instead of the function callable
  • Implemented io.fonts.texture_desired_width

The texture_desired_width can be essential when importing many and large fonts, because the default max of 4096 can run out quite quick and will easily cause GL_INVALID_VALUE errors when refreshing the font texture due to the ridiculous resulting texture height. I don't know why it isn't done by default (might be something to look into implementing in the integrations?), but I've found that now setting:

io.fonts.texture_desired_width = gl.glGetIntegerv(gl.GL_MAX_TEXTURE_SIZE)

allows me to get the most out of what I can work with. In my case it was 8192, double the default 4096, and allowed me to scale my interface to 4x+ when without it only went up to 1.7x before crashing.

@KinoxKlark
Copy link
Member

This looks good to me, thanks!

@KinoxKlark KinoxKlark merged commit ae0baca into pyimgui:dev/version-2.0 Aug 6, 2022
@KinoxKlark KinoxKlark added the release pending Merged but still needs official release label Aug 6, 2022
@Willy-JL Willy-JL deleted the some-fixes branch December 17, 2022 04:27
@KinoxKlark KinoxKlark removed the release pending Merged but still needs official release label Apr 19, 2023
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.

None yet

2 participants