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

Asset Packs: Optimize icon loader #164

Merged
merged 12 commits into from
Jul 18, 2024
Merged

Asset Packs: Optimize icon loader #164

merged 12 commits into from
Jul 18, 2024

Conversation

Willy-JL
Copy link
Member

@Willy-JL Willy-JL commented Jul 17, 2024

What's new

  • Refactor to keep const icons and load replacements only in RAM
  • Swap icons at draw, not at icon pointer
  • Base icons can therefore be const, and not copied to bss, giving 4.2kb more total RAM

For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

@Willy-JL Willy-JL added the enhancement New enhancement or request label Jul 17, 2024
@Willy-JL Willy-JL self-assigned this Jul 17, 2024
@Willy-JL Willy-JL linked an issue Jul 17, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Jul 17, 2024

Compiled f7 firmware for commit 160fa056:

@Willy-JL Willy-JL marked this pull request as ready for review July 18, 2024 02:01
@Willy-JL Willy-JL merged commit aa6d4de into dev Jul 18, 2024
5 checks passed
@Willy-JL Willy-JL deleted the optimize-icon-loader branch July 18, 2024 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New enhancement or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

NFC: OOM Crash
1 participant