How can I check how much battery consumption for my game?

I’m trying to improve the performance for my game. (I find a very useful video here).
My target is: reducing the battery consumption as much as possible. So I need a tool to check how much battery consumption for my game (simulator or something), or at least a method to read the stats.
I see this forum thread discuss about Optimizing Battery Consumption, but my question is far more fundamental - just how to check how much battery consumption for my game? I see that forum post uses Xcode to monitor battery consumption, but I use Windows - Visual Studio (or MonoDevelop).

You lack information here. Android? iPhone? Laptops? What?

Battery consumption is a relative concept, really. No batteries perform the same. Its always a ‘Best Guess’ scenario. Generally, if you give an indication of the state of usage of the Processors (none to maxed out) then the user can generally decide whether or not to invoke power saving options if they find their battery being drained quickly. Optional is good because most people dont care much about power usage and just want Maximum performance and Quality.
That said, having some automatic scaling is a good thing for lower end devices where as the dev you want to not compromise on experience. You can tie this in the the Quality Settings interface.



First determine whether the Device is Plugged in or not, using the batteryStatus info. If it is, run at max performance (provided the device is still actually charging despite being plugged in, unless full). If not plugged in, take timestamps of the battery level at set intervals and you will have a nice simple indication of the actual drain and a good idea of time left.

If when plugged in your timestamps show the device is still draining, the constraints should be applied until the battery level starts increasing.

Such options could be exposed in your games settings menu. Or not.


Some devices come with temperature sensors. In these cases it is probably more preferable to monitor the temperature of the GPU, not only for safety reasons (personal and of device) but because it is a decent indication of the actual strain on the system caused by the Game. It also correlates more or less directly with level of power consumption and hence battery drain.