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

internal/mipmap: do not deallocate mipmap images so often #3093

Closed
11 tasks
hajimehoshi opened this issue Sep 12, 2024 · 0 comments
Closed
11 tasks

internal/mipmap: do not deallocate mipmap images so often #3093

hajimehoshi opened this issue Sep 12, 2024 · 0 comments
Milestone

Comments

@hajimehoshi
Copy link
Owner

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

Now mipmap images in an Image are always deallocated whenever DrawImage is called. This is problematic when the Image is an offscreen and is often rerendered. Actually, this caused unnecessarily GPU memory allocations and deallocations. We should keep the mipmap objects and reuse them.

Why is this needed?

For performance.

@hajimehoshi hajimehoshi added this to the v2.8.0 milestone Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant