Bug #348

Performance issues

Added by Espen Solbu over 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:02/10/2012
Priority:NormalDue date:
Assignee:Android Dashboard Testers% Done:

0%

Category:-Spent time:-
Target version:2.0 Multiple models

Description

Something crazy is happening where the FPS keeps increasing and the app gets less responsive.

Can happen at any time, but seem more frequent after modifying FrSkyAlarms

Suspicion:
The watchdog might be sent out while we are still waiting for the previous result to return


Related issues

Related to Bug #353: Swapping models lead to multiple broadcast recievers Closed 02/13/2012
Related to Bug #401: 2.0 Slows down during configuration Closed 04/20/2012
Related to Bug #421: Channels from multiple models listen to channel updates Closed 05/01/2012
Related to Bug #420: AD1 raw and AD2 raw registers twice Closed 05/01/2012
Related to Bug #419: Deleting a channel from a model does not seem to delete t... Closed 04/30/2012

Associated revisions

Revision 285
Added by Espen Solbu over 5 years ago

refs #348 Made some changes to when to allow to send out watchdog frames, Need to be tested with device

Revision 295
Added by Espen Solbu over 5 years ago

refs #348, #353 tried different approaches to get rid of "loose channels"

Revision 303
Added by Espen Solbu over 5 years ago

closes #355, #353
refs #348 Should now work properly, keeping models in server instead of database

Revision 387
Added by Espen Solbu over 5 years ago

refs #348,#419,#420,#420 Debugging performance issues, added logging, removed passing parselled channel back unless neccesary, added more attempts at unregister, added finish() to ActivityChannelConfig to try to prevent it from holding references.

History

#1 Updated by Espen Solbu over 5 years ago

Add following to see if it helps:

If we have outbound frame flag, do not send new one.
Reset outbound frame flag after e.g. 5 secs

#2 Updated by Espen Solbu over 5 years ago

  • Status changed from New to Pending Testing

#3 Updated by Espen Solbu over 5 years ago

  • Priority changed from Urgent to Normal

Does still happen.
Much better when I disable log messages and debug in manifest though

seems it can happen if UI activity is tasked, also it affects UI heavily.

-> attempt some performance refactoring to see what that does

#4 Updated by Espen Solbu over 5 years ago

  • Subject changed from FPS increases, and performance decreases to Performance issues
  • Priority changed from Normal to Urgent

Turns out that performing activities (not Dashboard) while receiving data, quickly makes everything sluggish

Particularily switching models

Symptoms:
  • Not even close to being equally bad while running simulator (though simulator seems to run at approx 8 fps, while BT connection runs at approx 30)

#5 Updated by Espen Solbu over 5 years ago

Increased the speed of the simulator, no performance issues while simulator runs at 40, however did notice related issue. Broadcast receivers seem to add up. This did cause performance issues, though not at the speed that bt connection did..

#6 Updated by Espen Solbu over 5 years ago

  • Status changed from Pending Testing to In Progress

#7 Updated by Espen Solbu over 5 years ago

  • Status changed from In Progress to Pending Testing
  • Priority changed from Urgent to Normal

I think this should work now,

needs testing to see that all the normal features still work
  • Works after firstinstall?
  • Alarm storage
  • Channel storage
  • Channel updating

#8 Updated by Espen Solbu over 5 years ago

Added new file Alpha 04, this should fully fix the performance issues that arise whenever one switch models

#9 Updated by Espen Solbu over 5 years ago

  • Assignee changed from Espen Solbu to Android Dashboard Testers

#10 Updated by Espen Solbu about 5 years ago

  • Status changed from Pending Testing to Closed

no issues experienced when flying 2 x 10 minute flights

Also available in: Atom PDF