Top "Game-loop" questions

The central component of any game, from a programming standpoint, is the game loop.

Why is a "main" game loop necessary for developing a game?

I find that most game development requires a main game loop, but I don't know why it's necessary. Couldn't we …

game-loop
Lua, game state and game loop

Call main.lua script at each game loop iteration - is it good or bad design? How does it affect …

c++ lua game-loop lua-c++-connection
Java TimerTick event for game loop

I tried making a game loop in Java using the Timer from java.util.Timer. I am unable to get …

java swing timer game-loop
Smooth Canvas Animation

I'm trying to learn how to create smooth JavaScript animations using HTML5's canvas. For some reason, the animation is …

javascript animation webkit html5-canvas game-loop
Annoying lags/stutters in an android game

I just started with game development in android, and I'm working on a super simple game. The game is basically …

java android surfaceview game-loop flappy-bird-clone
Pausing a Thread - Activity pause timeout for HistoryRecord

I'm trying to write a game engine in Android, but I don't have much familiarity with threads. My thread has …

android multithreading android-activity game-loop
Constant game speed independent of variable FPS in OpenGL with GLUT?

I've been reading Koen Witters detailed article about different game loop solutions but I'm having some problems implementing the last …

c opengl glut game-loop
Algorithm for Client-Server Games

For stand alone games, the basic game loop is (source: wikipedia) while( user doesn't exit ) check for user input run …

algorithm game-loop
Android game with constant FPS?

I'm implementing a game loop with constant FPS. I'm thinking about 25-30 FPS should be enough. Any ideas from your …

android frame-rate game-loop
Node.js: alternative to setInterval which is more precise for game loop

My setup is a multiplayer game, with sockets to async transfer data. Now because of the nature of a game, …

javascript node.js timer game-loop