MccarronRayner1

Aus daten-speicherung.de
Zur Navigation springen Zur Suche springen

Summary tro choi dien thoai di dong mien phi In this article I will discuss the technique developed and implemented in our new game Armageddon Wars that has extended the potential life of the iPhone�s battery throughout gameplay. To do this, I will demonstrate the following:

tro choi dien thoai di dong

   Lowering the frame rate of a online game increases the battery life by a significant amount.
   Games do not need a high frame rate when displaying a static screen, or a simple 2D movement.
   Our game actively throttles down the frame rate according to what animations are playing at any given time. This reduces the battery consumption by a tiny, but not insignificant amount.
   Many commercial games do not make any attempt to lower the frame rate when displaying static screens, wasting battery lifestyle. tro choi dien thoai

The ultimate section explains the way in which the technique was applied. tro choi di dong


Background mobile game A lot of game programmers bring the PC mind-set having them when they get started developing for mobile devices. For PC games the focus on is to attain the legendary 60 frames per second rate. This is fine when the hardware is connected to an electrical outlet, but power consumption becomes an important factor when your device is running from a battery. game mobile

Rather than thinking of speed alone, you need to think of entertainment value. Imagine two people on a 3 hour flight journey who are playing games on their iPhones to pass the time. One has a 60 FPS game, but the electric battery runs out mid journey. The some other is playing a game that is capped at 30 FPS and the battery lasts the whole journey. Which of these two people gets the most entertainment value?

You don't truly even need 30 FPS a lot of the time. At certain points during the game it might be showing only a static menu, or a simple animation � for instance a blinking light in addition to you do not need 30 FPS for that.

To play an animation well you need a frame rate that's twice the frame frequency of the animation. For instance, a simple 2D flag animation that has 3 frames and repeats every second only needs 6 FPS to play effortlessly. Anything above that is overkill.

Apple themselves consider battery consumption to be an incredibly important issue. Their own developer guidelines advise the following:

Do not draw to the screen faster than necessary. Drawing is an expensive operation when it comes to power. Do not rely on the hardware to throttle your frame rates. Draw only as many frames as your program actually needs.

But, we determined to take this idea one step further.