The frequency which an imaging device produces unique consecutive images. It is most often expressed in frames per second (FPS).

learn more… | top users | synonyms

3
votes
4answers
1k views

How to implement accurate frame-rate-independent physics?

So, I have been working on a project for a while now and recently stumbled across a problem: The common approach to frame-rate independent physics is to either use a fixed update interval (ie. Unity) ...
1
vote
1answer
134 views

How do games like Street Fighter compensate for bad frame rates?

I know fighting games like Street Fighter like to run and are capped to a standard 60 fps. All their combos, animations, chains, etc... are based on frames. So, how do they compensate for slowdowns ...
1
vote
1answer
46 views

Frame rate slowing down after publishing XNA game in VB.NET

I will get to the main question later but I just want to give the backstory here first. I program a game in XNA using VB.NET. As I'm testing the game in debug it works at a certain speed (...
3
votes
3answers
168 views

Gfx.WaitForPresent performance issue

I am making a 2D mobile game and it runs really well (60 fps) on my phone. However, in some cases the performance goes down drastically to the point where it runs at 20 fps or even less. It happens at ...
2
votes
2answers
220 views

How can I simulate thousands of things at high frame-rates?

I'm working on a simulation game like SimTower where I'd like to keep track of thousands of items at once. Other games like this, appear to have hundreds or thousands of rooms with elevators with ...
4
votes
1answer
119 views

Multi-threading for rhythm game?

I'm trying to recreate a rhythm game. However trying to get the key-presses with SDL2 I ran into the problem, that you can only get an event every time a frame has been successfully rendered (I can't ...
1
vote
1answer
502 views

Locked frame rate

I'm a little bit confused about the way game engines handle frame rate. Correct me if I'm wrong: By my assumptions, usually we have a frame rate which graphical API runs by it and a frame rate ...
2
votes
1answer
50 views

Pygame time.get_fps() value

I was looking at the pygame.time.Clock.get_fps() method and after puting it inside of the while loop printing and checking it some times, i see that i starts to give its value after five frames (and ...
0
votes
0answers
33 views

Setting up game loop wait time and FPS

I have been able to set up the game loop method/function, but many objects do their stuff in separate threads. The reason for that is not ensure, that the program is not going to stop working, despite ...
2
votes
4answers
95 views

How can I achieve a constant drop rate with a variable frame rate?

In my game, I have particles that should spawn at random intervals but with an average rate of x per second. However, the frame-rate varies from around 60 fps all the way to around 3000 fps. I would ...
2
votes
3answers
136 views

Accelerated movement in a specific time to a specific point

I am trying to move my sprite in a specific time to a specific position while using frame-independent or time-dependent movement. My sprite is also accelerated every frame to simulate gravity. I know ...
0
votes
0answers
37 views

Profiling frame rate in shader

I used adreno profiler to profile a mediaplayer shader application: source : https://github.com/crossle/MediaPlayerSurface/blob/master/src/me/crossle/demo/surfacetexture/VideoSurfaceView.java The ...
0
votes
1answer
118 views

Unity stats framerate vs Time.deltaTime

Googling around, a way for calculating framerate and displaying it as text ingame is using 1/Time.deltaTime. However, comparing this against unity stats FPS shows 2 different FPS. Which of it is ...
0
votes
2answers
105 views

How to make score counter independent of framerate

I have a score counter, but I've noticed that the lower the framerate is, the slower it counts. How can I make it so it ignores the framerate? using System.Collections; using UnityEngine; using ...
0
votes
1answer
40 views

Frame Rate Independence for Non-Linear Increases

So while working on my game, I decided that I would have a speed variable increase in the fashion speed += 1/speed; with the goal being that in the beginning it increases fast and then it increases ...
13
votes
2answers
2k views

Movement appears to be frame rate dependent, despite use of Time.deltaTime

I have the following code to calculate the translation required to move a game object in Unity, which is called in LateUpdate. From what I understand, my use of Time.deltaTime should make the final ...
0
votes
0answers
34 views

How can I lower the cpu usage in kiwijs?

I tried setting the game.frameRate to 30 and the animations are running slower but the cpu has the same load. (That worked before with CreateJS but that library is not focused to games and does not ...
1
vote
0answers
236 views

Unity 5 Google Cardboard VR SDK Frame Rate

I am running the Google Cardboard's official demo which doesn't really have much things on the scene (https://developers.google.com/cardboard/unity/download) on my Personal Unity 5 on my Nexus 5. The ...
1
vote
1answer
189 views

How to resize animation in libgdx?

I want to draw an animation, the size of each frame is 500x500px but when I try to resize, the animation seems to rotate... Here the code to load frames and create animation: Texture fireSheet = ...
0
votes
2answers
93 views

How to adjust my games speed to fps [duplicate]

Hi so i am making a small sort of physics engine, but if your fps is really slow the physics will update slower and objects will move slower. How do i make the speed of objects greater if the fps is ...
2
votes
2answers
162 views

FPS drop when detecting collision (sfml, c++)

So, I have this small class with a collision detection function in it, it's called every frame. When I run the game I get around 8000 FPS, but when the collision function gets called it drops to 2000....
5
votes
2answers
582 views

Can you write the current frame number to a text file?

I am running an experiment in Unity 5 to see the effect increasing the particles of a particle effect has on FPS over time. (this is background work for a much larger piece of work). Currently I write ...
3
votes
1answer
1k views

Frequent stuttering, high FPS spikes with VSync option turned on in Unity standalone build

I'm experiencing an issue using Unity 4.3.2 and standalone builds. If I turn on VSync in the project's Quality settings, running the game at the native monitor resolution, I'll frequently get high ...
1
vote
1answer
119 views

Frame Rate in Cave Story

When reading on frame rate, i usually encounter the following suggestions: render as fast as possible render to 60 fps I want to make a 2d game that runs in slow computers, and i've been surprised ...
3
votes
1answer
201 views

GameMaker: Studio - Slow down calculations

I currently have an orbital simulator, with a brilliant answer in another Game Development question here, and would like to know how to slow down the calculations of Game Maker, to be able to do more ...
12
votes
2answers
2k views

Will unlocking the framerate in XNA/MonoGame tell me how efficient my code is?

I have been unlocking the framerate in MonoGame via: this.graphics.SynchronizeWithVerticalRetrace = false; base.IsFixedTimeStep = false; And using it as a basis for how efficient I am updating and ...
0
votes
1answer
3k views

Locking the frame rate in pygame?

I am having trouble setting up the frame rate in my first game. I know that I can set it up with clock = pygame.time.Clock() clock.tick(60) but this is not producing very desirable results. If I ...
3
votes
1answer
1k views

How do I find an optimal FPS for best user experience while preserving battery life?

I'm developing an Android game. The "graphics" I'm using need little CPU/GPU, so they run with high FPS. Because saving energy is important on Android devices, I want to limit frame-rate (if deltaTime ...
3
votes
1answer
158 views

Is Update called based on screens refresh rate? MonoGame

My game is running 60fps (Because I'm using a 60hz monitor) but if I would use a 85hz monitor it would be running 85fps. My question is if update is called based on the screens refresh rate or if its ...
10
votes
4answers
2k views

Could frame interpolation like used by SmoothVideo Project be an option to increase the framerate of games without as big a performance hit?

The SmoothVideo Project uses frame interpolation to increase the fps of video from 24 to 60. The results are pretty impressive. I was wondering if this could be applied to, and whether it would look ...
2
votes
1answer
237 views

What is a reasonable way to avoid GC issues in Unity?

I've been reading about how garbage collection is a big problem when programming games using C#, Java, and the like - if you have a large amount of objects, the GC will run sporadically and scan ...
0
votes
3answers
1k views

SFML game loop and FPS problems

I've been building an SFML engine and I've been very confused on the FPS, frame independent movement and game loop. My particular problem is that I have a variable set to 60 for the frame limit but ...
1
vote
2answers
116 views

Can't find out why aren't those collisions framerate independent

I'm making a 2D Platform game and I'm having trouble with my collision detection. It doesn't seems to be framerate independent even though I used deltatime there. The problem is that at 60fps, a ...
0
votes
0answers
298 views

SDL2 - Windowed mode, VSYNC active, refresh rate 56hz instead of 60hz

As the topic title says. System is Windows 7 64bit. C++. I am not sure why this happens. The refresh rate in the window is 56 hz (calculated in the application from SDL_GetTicks) instead of the ...
6
votes
3answers
2k views

Framerate is affecting speed of object

I'm experimenting with building a game engine from scratch in Java, and I have a couple questions. My main game loop looks like this: int FPS = 60; while(isRunning){ /* ...
1
vote
1answer
557 views

How do I implement a fixed delta time step with a SDL_Delay(15ms) precision

So I am using SDL2.0 for making a Game Engine. Where I am having a problem is using SDL_Delay(). SDL_Delay's minimum delay time is 15ms, I've tried everything, and my FPS is Stuck at 64 because of ...
4
votes
2answers
2k views

HTML5 game fps render lag

I am currently creating a flappyBird-like HTML5 game using Proccessing.js You can see current work here: http://files.tips4design.com/flappySlothRelease/ The problem is that even though the FPS is ...
0
votes
1answer
190 views

OpenGL streaming from multiple windows

I am using GLUT library for my research/game. In my game I have 25 windows created using glutCreateWindow(title), and each of them have their own display callback registered using glutDisplayFunc(...
0
votes
1answer
66 views

Should I worry about variable time step for simple mobile 2d game

After going through some articles on framerate independent game design, i found that its not an easy task to implement in variable time steps(it is difficult compared to fixed frame rate, and ...
214
votes
10answers
68k views

When should I use a fixed or variable time step?

Should a game loop be based on fixed or variable time steps? Is one always superior, or does the right choice vary by game? Variable time step Physics updates are passed a "time elapsed since last ...
2
votes
1answer
185 views

What is the difference between framerate independent vs framerate dependent?

What is the difference between framerate independent vs framerate dependent? Can you please give an example.
0
votes
1answer
530 views

Capping framerate independently of logic updates in single-threaded Android Gameloop

My game is currently using the below game loop (this is an OpenGL ES 2.0 game, therefore the loop-work takes place on the rendering thread in the provided onDrawFrame method). Currently my loop ...
-1
votes
1answer
132 views

Java game runs slower and slower as game runs longer [closed]

I know that this question may be considered off topic, but this is a significant problem. Problem: I have in a java game that I am working on. The FPS counter starts at 250 FPS and in about 2-4 ...
0
votes
1answer
614 views

Issue with fps limiting in XNA

The game I am making runs at 60 fps, but occasionally it will drop lower than that. I want to limit the frame-rate to 30 fps so that those drops will be less noticeable. I don't understand everything ...
4
votes
2answers
236 views

How can I make sure my game runs on older GPUs than mine?

My game must stay at 75fps to be playable (I'm developing for the Oculus Rift) and I'm optimizing with that hardware in mind. My mid-range Nvidia GTX 650 Ti struggles a little with some Rift demos, ...
1
vote
2answers
361 views

Framerate dependent movement

I'm moving my character controller using Euler integration like this: Vector3 originalPos = transform.position; Vector3 acceleration = Physics.gravity; velocity += acceleration * Time.deltaTime; ...
3
votes
1answer
2k views

How to handle the different frame rate on different devices?

I am not quite sure how frame per second works on a web page. I have a Canvas game that involves in moving an image from point A to B, and measuring the time elapsed. The code can be as simple as: ...
7
votes
2answers
7k views

How do I enable higher FPS in XNA 4.0?

I created a FpsCounter DrawableGameComponent (linked to code, it's longish). It works great: It displays 60.0 fps normally. If I artificially slow down the game loop, it drops. My 'game' at the ...
0
votes
2answers
441 views

Incrase framerate in XNA [duplicate]

I'm trying to increase the frame rate of my game from 60FPS to 100 FPS because of reasons. But i can't seem to get it higher than 60 frames. This is the count I'm using. I can slow down the frame rate ...
12
votes
5answers
4k views

Working with lots of cubes. Improving performance?

Edit: To sum the question up, I have a voxel based world (Minecraft style (Thanks Communist Duck)) which is suffering from poor performance. I am not positive on the source but would like any possible ...