Delta time not accurate enough
In my game i have a delta timer based almost exactly on the page from here http://wiki.lwjgl.org/index.php?title=LWJGL_Basics_4_%28Timing%29 But if the the main loop is fast enough, my delta time...
View ArticleSmooth animation using delta times – big delays ocurring …
I’m writing a game on Android using OpenGL ES 2.0 for fun. I’m developing on Samsung Galaxy Note 3. I want to try to master smooth animation, i.e. correct frame transition and movement. I am focusing...
View Articleandroid game development: why is my screen black?
so, im strarting an android game from scratch, and every time I try i stumble uppon the same problem, my screen is not displaying what i want it to. I’ve read various tutorials but they are either...
View ArticlePausing the game inside the game loop
Inside the game loop, the game is paused by pressing P, meaning that the game loop does not run anymore. Problem is that after this loop is halted, P cannot be pressed again to resume the loop, since...
View ArticleDirectx 9 Obj Model
There’s is a error with my obj load/render that I can’t solve I’m a newbie in directx 9, I’m trying to do this in the best way The model is not displayed properly, do not know if this correct model...
View ArticleWhat is the better way to speed up gameplay as the level rises?
I started with game programming couple of weeks back. For the starters I tried to develop ZigZag (link takes you to 2 min gameplay). I am done with the logic of gameplay by now. It runs well and all....
View ArticleHow to use multiplication operation in game render delta time?
We are using delta time like this: private static final float SPEED = 200f; // Moving pixels in one second @Override public void render(float delta) { myObject.vx += SPEED * delta; myObject.vy += SPEED...
View ArticleWhat type of loop code on game engines? [duplicate]
This question already has an answer here: Tips for writing the main game loop? [closed] 3 answers
View ArticleQuestions About Game Loops
I’ve been reading up how to lay out a game loop that’ll work optimally in both great and not so great conditions but I think I’ve confused a few techniques together… so I have some questions… Fixed...
View Articlerender/draw or input first?
When creating the main game loop, what order should things generally happen? IE, should i be getting input, doing logic and then rendering, or something else? does this even matter? when i was coding...
View ArticleMovement in gameloop
I wonder what the best way is to move the player. Is it best to always check for movement like I do in the first example of is it better to only access the movement function via the input function like...
View ArticleDoes libgdx implement the game loop for you?
Initially, I assumed that the developer has to implement the game loop because libgdx is a library – not an engine. But then I found out that Graphics has getDeltaTime() and getRawDeltaTime() so I...
View ArticleHow Many Particles at a Time? [closed]
How many particles should a particle system be able to process in a single step/game loop? I designed a system and it can run up to 5000 particles with my 2GB RAM PC (I only run the particle system...
View Articleis this approach correct to make my game framerate indipendent in javascript?
this is what i did my game loop is run every REFRESH milliseconds loop = setInterval(tick,REFRESH); in the loop i calculate how much time is passed since last tick and subdivide that for how much time...
View ArticlePlaying with hashmap in drawing
I’m developing a game in Java for Android, using LibGDX. In my render(), between the batch.begin() and batch.end() I’m running through all the game objects and draw them. Every game object is stored in...
View ArticleA deterministic game loop
I want to make a game loop that is deterministic sort of like a physics engine but it’s for game update and rendering. I’ve done a lot of reading and I still was a bit confused. I’ve read these...
View ArticleClient and server loops don't match up
I’m trying to build a small networked game using WebGL and NodeJS. I have a basic client and server setup and I’m at the point where I’m trying to implement dead reckoning to simulate what happens on...
View ArticleHow should I define interaction modes in a strategic game?
I am creating a typical strategic game that gamer can select, deploy and move the game characters (Human mostly) and move or create buildings on its isometric map. These all are going to be done by...
View ArticleLaggy empty project at 60FPS
@Override public void create() { batch = new SpriteBatch(); img = new Texture("badlogic.jpg"); } @Override public void render() { Gdx.gl.glClearColor(0, 0, 0, 1);...
View ArticleShould input be per-frame or per-update?
I’m implementing a GUI system to look around a 2D tile-based world. At the moment, I’m updating it every time the mouse moves (which happens to be per frame, since that’s when it polls for events)....
View Article