Skip to content

Drawable improvements#39

Merged
SCratORS merged 2 commits intoSCratORS:mainfrom
Doctoror:drawable-improvements
Feb 15, 2024
Merged

Drawable improvements#39
SCratORS merged 2 commits intoSCratORS:mainfrom
Doctoror:drawable-improvements

Conversation

@Doctoror
Copy link
Copy Markdown
Contributor

@Doctoror Doctoror commented Feb 14, 2024

Note that there are two commits. I recommend reviewing first commit separately.

  • Do not recreate bitmap at TextureManager:86.
  • Reference drawable by ids. The benefits are:
    • avoids expensive lookup for resource ids
    • avoids creating strings
    • preview in IDE

Scrot

The benefits are
- avoids expensive lookup for resource ids
- avoids creating strings
- preview in IDE
Comment thread app/src/main/java/com/scrat/everchanging/TextureManager.java
Comment thread app/src/main/java/com/scrat/everchanging/TextureManager.java
@SCratORS SCratORS merged commit 984dd21 into SCratORS:main Feb 15, 2024
@SCratORS
Copy link
Copy Markdown
Owner

#40

@Doctoror Doctoror deleted the drawable-improvements branch February 15, 2024 11:47
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