Home » Android » games » main loop

main loop

Measuring Frames Per Second (FPS)

This is an example of how to measure frames per second (FPS) in an Android application or game. Measuring FPS in an Android game is very important because it allows you to gauge how smooth the game is. In general, the more FPS the better user experience. For a better understanding, make sure to check the Android Game Loop example ...

Read More »

Game loop example

In this example we shall show you how to create a game loop in Android. Before starting, you should check our Basic Game loop example in order to understand the basic concepts. To create a game loop in Android one should perform the following steps: Create a thread that will be used as the game loop Implement the run() method ...

Read More »

Basic game loop

This is an example of how to create a basic game loop with Android. Before following this basic game loop example, you might wish to check out our Android Game Development Tutorials series. To create a basic game loop in Android one should perform the following steps: Create an Android activity (here called DroidzActivity) Implement the onCreate method Create a ...

Read More »