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

Memory savings #86

Closed
wants to merge 2 commits into from
Closed

Conversation

scottyob
Copy link
Collaborator

@scottyob scottyob commented Feb 28, 2025

NOTE: Depends on PR #85 for memory profiling debugging

Reduces the max waypoint and moves the Fanet graphics into Flash and out of memory. Savings is about 55 KB of heap memory savings. Almost enough to store an entire BLE stack into!

Before:

=== Memory Stats ===
Total Heap: 241 KB
Free Heap: 103 KB
Used Heap: 138 KB
Largest Free Block: 41 KB
Minimum Free Heap Ever: 100 KB
Main Task Stack High Water Mark: 12 KB
Free PSRAM: 0 bytes
Largest Free PSRAM Block: 0 bytes
====================

After:

=== Memory Stats ===
Total Heap: 296 KB
Free Heap: 158 KB
Used Heap: 138 KB
Largest Free Block: 95 KB
Minimum Free Heap Ever: 155 KB
Main Task Stack High Water Mark: 12 KB
Free PSRAM: 0 bytes
Largest Free PSRAM Block: 0 bytes
====================

Adds a task for debugging memory utilization, once per second to print to console on debug releases.
Greatly reduces the amount of RAM needed.

[Memory] Memory optimization.  Make the graphics Consts.  Get them out of DRAM
@scottyob scottyob requested a review from oxothnk423 February 28, 2025 16:05
@scottyob scottyob mentioned this pull request Feb 28, 2025
@oxothnk423 oxothnk423 closed this Mar 1, 2025
@scottyob scottyob deleted the Memory-Savings branch March 2, 2025 01:50
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