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

Bestiary 2.2.0: Performance improvements (now DREAM compatible) #7

Merged
merged 1 commit into from Feb 9, 2024

Conversation

Jagget
Copy link
Contributor

@Jagget Jagget commented Feb 8, 2024

What's in it:

  • Refactored some functions to reduce if-nesting.
  • Put ImagePanel inside static ImageContainerPanel, which allows to use native alignment (no need to manually calculate ImagePanel position) and calculate our own scale.
  • Instead of copying the texture and then flipping it, use the negative scale of ImagePanel to flip ImagePanel itself.

Preview: https://streamable.com/e/n7scfw

What's in it:
- Refactored some functions to reduce if-nesting.
- Put ImagePanel inside static ImageContainerPanel, which allows to use native alignment (no need to manually calculate ImagePanel position), and calculate our own scale.
- Instead of copying the texture and then flipping it, use the negative scale of ImagePanel to flip ImagePanel itself.
@Shapur1234
Copy link
Owner

I seems to be working great! Nice that this is finally fixed.

@Shapur1234 Shapur1234 merged commit 7c59171 into Shapur1234:main Feb 9, 2024
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