Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Question (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?


> could align map north with compass north

Maybe the map turns as you turn so as to maintain compass north.


Just to confirm: yes, that is exactly what I meant.


Oh I see, it was supposed to align in real time, I missed that. Thanks.


Most 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 :)


I assume you might need it for the “person” icon while the user moves around the city?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: