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

Update go-gl/glfw to v3.3.10 and remove workaround #4704

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Mar 6, 2024

Description:

This is a great GLFW update (see go-gl/glfw#396) because it not only fixes various bugs but one of the bugs that it fixes addresses a bug that we have been working around for a long time.

The workaround for this issue involved deferring a recover() to catch the panic that could occur for incorrectly invalid keycodes. This did not only degrade performance due to having to run recover but the defer was also making it impossible to inline the method. Given that we are running this in the (rather hot) runloop, I expect the performance improvement to be quite substantial.

Fixes #1024

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

This is a great GLFW update (see go-gl/glfw#396) because it not only fixes various bugs but one of the bugs that it fixes addresses a bug that we have been working around for a long time.

The workaround for this issue involved defering a recover() to catch the panic that could occur for incorrectly invalid keycodes. This did not only degrade performance due to having to run recover but the defer was also making it impossible to inline the method. Given that we are running this in the (rather hot) runloop, I expect the perofrmance improvement to be quite substancial.
@Jacalz Jacalz added the optimization Tickets that could help Fyne apps run faster label Mar 6, 2024
@coveralls
Copy link

Coverage Status

coverage: 64.826% (-0.003%) from 64.829%
when pulling beed274 on Jacalz:v3.3.10
into 45cca22 on fyne-io:develop.

@Jacalz Jacalz merged commit 417de2f into fyne-io:develop Mar 7, 2024
12 checks passed
@Jacalz Jacalz deleted the v3.3.10 branch March 7, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Tickets that could help Fyne apps run faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants