4 ms·
A previous employer of mine explicitly requested this behaviour in their app. The app showed a map, and could align map north with compass north; to save batter
by ben_w 7y ago
A previous employer of mine explicitly requested this behaviour in their app. The app showed a map, and could align map north with compass north; to save battery, it would drop to an incredibly low frame rate (1fps?) about one second after your finger left the screen. It achieves the power goal, and has a high rating in the App Store, so I learned something about user requirements and being humble from this experience.
- mehrdadn 7y agoQuestion (I don't know how Android works) -- how is there even a "frame rate" for a map that isn't moving? Shouldn't it not be doing anything at all when nobody is touching anything?
- markdown 7y ago> could align map north with compass north Maybe the map turns as you turn so as to maintain compass north.
- sprafa 7y agoI assume you might need it for the “person” icon while the user moves around the city?
- izacus 7y agoMost maps these days are rendered via OpenGL (or Metal) and in those cases you still manually flip buffers and order GPU to render a frame. It's possible to control this process to avoid exessive power usage. Of course, for most developers that might mean to not update/invalidate() a map view constantly :)