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

Resize the canvas a bit less often in map_canvas_resized #1172

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

lmoureaux
Copy link
Contributor

The cached mapview texture always gets resized in tile_width/height increments.
One needs to redraw only when the cache got resized, not every time. The code
doing that had been broken since 9bd5b4a; fix it.

This should slightly improve performance when resizing the main window.

On top of #1169

@lmoureaux lmoureaux added refactoring This issue requires code refactoring gui This issue requires changes to the user interface labels Jul 30, 2022
@lmoureaux lmoureaux requested a review from jwrober July 30, 2022 21:50
@jwrober
Copy link
Collaborator

jwrober commented Aug 5, 2022

Does this PR need rebasing to master after 1169 has been merged?

@lmoureaux
Copy link
Contributor Author

Does this PR need rebasing to master after 1169 has been merged?

Yes

The cached mapview texture always gets resized in tile_width/height increments.
One needs to redraw only when the cache got resized, not every time. The code
doing that had been broken since 9bd5b4a; fix
it.
@lmoureaux lmoureaux force-pushed the bugfix/less-canvas-resizing branch from 9f76f55 to ccb37df Compare August 5, 2022 23:07
@lmoureaux lmoureaux marked this pull request as ready for review August 5, 2022 23:07
@lmoureaux
Copy link
Contributor Author

Rebased

@jwrober jwrober merged commit 97d99ee into longturn:master Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui This issue requires changes to the user interface refactoring This issue requires code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants