arquicanedo / barbecueboss

Barbecue ConnectIQ App for Garmin Devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Memory] D2 Bravo runs out of memory on switch to SteakMenu

arquicanedo opened this issue · comments

I will check the icons sizes later.

Several of the 218x218 watches with physical buttons crash due to memory.

did some tweaking of things for these low-mem devices but there's still issues. We will probably need to segregate the small/medium icon image resources from the large/extra large resources based on device and update the jungle file as appropriate. I think we're just using too much memory for the static resources

After I'm done with all the GUI adjustments I'll start downsizing the icons on the low-mem devices.

Other affected watches:

  • D2 Bravo Titanium

The memory profiler shows this split of memory usage when loading the main screen on the D2 Bravo. The Code section takes +30Kb. I'll start refactoring to see if we can reduce that footprint.

The Global section are the variables we persist, and all the Rez hierarchy. This is very small.

image

A workaround to this is to change the maxSteaks down to 2 in the D2 Bravo. Perhaps this is the cleanest solution at the moment. The other option is to keep 5 steaks in the menu and eliminate the smoke option in the monkey.jungle. Perhaps not supporting smoking on low-mem devices makes more sense than limiting the grilling.

  • D2 Bravo, D2 Bravo Titanium solved by excluding smoke.
  • Fenix 3, Fenix 3 HR still have a problem. Even by reducing the maxSteaks to 1. --> Perhaps eliminate suppor for these two.