Skip to content

Conversation

isHarryh
Copy link
Contributor

@isHarryh isHarryh commented May 29, 2025

Summary

This PR does some optimizations to the Texture2DConverter:

  • Removes unnecessary paste call in the pad_image, improving performance by ~20%.
  • Removes unused function assert_rgba.
  • Removes unnecessary if not instanceof(xxx, bytes) check before converting xxx to bytes. In CPython, bytes(xxx) will return xxx itself if xxx is already a bytes.

This PR is a part of #318

@K0lb3 K0lb3 merged commit 1b30650 into K0lb3:master May 31, 2025
5 checks passed
@isHarryh isHarryh deleted the patch-cleanup branch June 1, 2025 07:36
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.

2 participants