Tagged Questions

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

1
vote
2answers
86 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; ...
0
votes
2answers
64 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 ...
0
votes
0answers
34 views

FPS drop after moved from Textures to TextureAtlas in LibGDX

I've started using LibGDX some time ago and I was making a test project to get used to this library. I've created some images and added them to the assets folder and loaded each image as a Texture ...
1
vote
1answer
182 views

Simple framerate counter?

I'm making a first person shooter, and I've seen questions like this before, but the answer is either overly complicated or they're using SDL, GLFW, GLUT, or something else. I'm not using any of that. ...
0
votes
1answer
181 views

How to calculate FPS and what factors affect FPS?

In this case, FPS means Frames Per Second and that means the number of frames that graphic hardware render in one second. I'm wondering what kind of stuffs could affect FPS? So, for some tests I ...
2
votes
1answer
150 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: ...
0
votes
1answer
47 views

speed up the update of glutidle()

I have a client that sends data at 1KHz (i.e. 0.001 sec) to a master over Internet using UDP protocol. In Master, I need to draw an object, but the problem is that the update of GLUT is slower than ...
0
votes
1answer
77 views

Fullscreen FPS slowdown in Linux [closed]

I've got a homemade game engine that supports both Windows and Linux using Win32 and Xlib, respectively. By default, the engine will create the window and then switch it into fullscreen mode. When ...
0
votes
4answers
248 views

Timing of coroutines in Unity is never precise

I was looking an official example for coroutines in Unity here. However, when I call WaitAndPrint the time taken is never exactly 5 seconds. IEnumerator WaitAndPrint() { float timeStart = ...
2
votes
2answers
61 views

How to use “weighted average easing” correctly with variable framerate?

I often use a weighted average for smoothly animating numerical values to a target value, like so: frame(dt) { value = ((value*someFactor) + targetValue) / (someFactor+1) } As you can see dt ...
2
votes
3answers
301 views

Should I cap the frame rate in SDL?

I know this question has been asked a lot, but I never found an answer suitable for me. I have a game with a fairly big logic system and the movement system I am currently using is calling ...
3
votes
1answer
72 views

Is there a common way to execute a task at a certain pace, without relying on the task priority feature of the OS?

There is no cross platform way to set process priorities, and I don't want to use threads since there are no standard method of setting priority to certain threads, apart from the fact that threads ...
0
votes
2answers
98 views

Achieving a fixed frame-rate with varying scenes

I am working on an OpenGL 3D model viewer app for iOS. I have to load, view and navigate extra detailled 3D models on an iPad. I hardly achieve 2 fps, if i load and navigate a very complex model. I ...
0
votes
1answer
121 views

Game Taking too long during render cycles [closed]

Firstly, I'm not asking anyone to read my code. It is only posted as a reference just in case you want to. I am asking for general tips on how to get my game running at higher FPS on android, for ...
2
votes
0answers
389 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
3answers
103 views

Why is my FPS computation yielding higher numbers than I expect?

I have following code: void Game::execute() { isExit = false; init(); double dt = 1.0 / 60.0; boost::timer timer; double accumulator = 0.0; boost::timer fps_timer; int ...
0
votes
2answers
142 views

How do I make objects' speeds appear the same despite screen resolution?

I'm working on my HTML5 game with Intel XDK. I'm stuck on making all devices display the same number of frames per second. The first generation iPad has a screen resolution of 1024 pixels ...
3
votes
2answers
568 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
2answers
84 views

What is framerate-independent motion?

What is the definition of framerate-independent motion and why is important to have it in games?
0
votes
2answers
191 views

How can I regulate update and event frequency?

I'm trying to create a small 2D RPG-type engine using C++, SDL/OpenGL and Tiled. My little demo looks very similar to a Pokemon or Zelda game. I was curious how to go about regulating FPS and how ...
-3
votes
1answer
128 views

Regulating Frames Per Second

I'm watching a video on regulating frames per second. I don't really fully understand the code. public void run() { long lastTime = System.nanoTime(); final double ns = 1000000000.0 / 60.0; ...
2
votes
1answer
252 views

Is it possible to achieve a smooth sprite animation with a fixed 60 FPS using Java 2D?

I've seen a lot of different game loops, and before implementing anything complicated I decided to start with a capped 60 FPS. My run method looks like this in my game thread: /** * Fixed Frames Per ...
1
vote
1answer
89 views

Idle/Moving FPS

Lets assume I have an object that consists of 70,000 triangles. Would the FPS be more when the object is idle or when the object is moving? Thanks
2
votes
1answer
72 views

Precise exposition of an image for set number of frames (Vsync?)

I need to make a simple enough program in C#, but it seems to be impossible via usual WinForms means. I need to show something (a string of text, an image) on the screen for very small time interval. ...
2
votes
1answer
207 views

First frame has a much longer delta time than other frames

I had a problem where my AI moved extreme at the first frame and then normal after that. I then figured out it was my delta. It's about 0.016 seconds (60 fps), but the first frame was about 19000 ...
0
votes
1answer
291 views

Framerate and game loop on mobile

I'm searching how to manage game framerate on mobiles devices, here is my problem: On a computer with got something like that: void main() { while(game.isRunning()) { ...
11
votes
5answers
1k views

What are the benefits of capping frames per second? (If any)

I am working on a simple game in OpenGL, using SDL for display initialization and input, and it appears in terms of timing I have two options available to me. Number one being just sleeping for the ...
2
votes
4answers
506 views

Should I worry about the refresh rate?

I'm working on an RTS and there is a lot of camera movement involved. The camera moves at a constant speed but it stutters (seems to jump/jerky movement) if I don't enable vsync. I understand why this ...
2
votes
2answers
380 views

Framerate-independent acceleration

Is this the right way, or at least a way that works, for dealing with accelerations in variable time steps evironments? // Pseudo-code void onUpdate() { mySpeed += acceleration * ...
4
votes
1answer
154 views

Time critical events based on framerate

Problem Description Basically, I've made a "programming game" in which I've made my own scripting language. It is a completely standard Lunar Lander game, though instead of directly controlling the ...
2
votes
1answer
127 views

What's a good way to distribute delayable tasks between frames to avoid lost frames?

I'm having a problem with finding a good way to keep the framerate high and at the same time keep running methods of game world update. I figured I could just put those methods in a thread so they are ...
8
votes
1answer
634 views

GL ES: Fragment shader optimization

Summary: I get FPS slowdown as soon as I try to tint the sprites (i.e: multiply texture with color in the fragment shader) Details: Hardware: iPod touch 4 I am drawing 700 sprites on the screen ...
3
votes
1answer
123 views

When using MVC, what is the proper way to handle a view refresh when the model isn't ready?

I'm about to start building a game and am having trouble understanding the proper course of action when it's time to refresh the screen, but the model hasn't finished its calculations. I assume this ...
2
votes
1answer
462 views

Optimal FPS for best user experience/battery life

I'm currently developing a game for Android. The "graphics" I'm using is not very CPU/GPU-expensive thus it runs with high FPS. Because on Android devices, saving energy is important, and I want to ...
1
vote
1answer
126 views

How to make camera rotation independent from frame rate?

I multiply the mouse movement by a given number to get camera rotation of a desired speed. But it only works at 60 FPS. When I don't limit the frame rate I get around 350 FPS and the camera rotation ...
6
votes
1answer
756 views

Android game loop's effect on cpu/battery usage - unexpected results

I will try to keep this question as concise and as readable as I can. I recently came across an odd problem with my Android game that I'm developing. It's an openGL ES 2.0 game and initially I was ...
2
votes
2answers
580 views

Why are my game ticks longer than expected?

I was working on my game, adding stuff to it, when I noticed my ticks were in the low 50's when I had set it to do a constant 60. This is my run method. public void run() { init(); long ...
4
votes
1answer
158 views

Problem of saturation of ram on XNA?

I developed a small xna games. For some time I have a problem with the saturation of RAM. In fact everything works perfectly, the game runs with a "Frame" of 60fps. But strangely I do not know for ...
1
vote
4answers
452 views

Maintaining frame rate while using many High Resolution models

I have shelves "made of" steel rods as a 3D-file. So a lot of virtual metal rods make up a cage. When cloning this in unity a few times even my fast computer can only show this in a choppy way. But ...
5
votes
2answers
1k views

Unlocking XNA game update rate and preventing unnecessary Draw calls and heavy logic Updates

I had some input problems which can be partially solved by unlocking game update rate. Now the input updates as fast as possible, but the game also calls the main Draw method a lot too. I believe ...
2
votes
2answers
428 views

How do I calculate consistent frame timings at 60fps?

I'm writing an HTML canvas game that uses requestAnimationFrame and therefore runs at 60fps, although this is more of a question about failing arithmetic than about JavaScript. If I measure the time ...
0
votes
2answers
500 views

SharpDX (DirectX) - possible to measure Frame time?

I'm trying to benchmark various ways to draw 2D lines and have a snag. A D3D10Device that I draw with (and flush) doesn't appear to block, so I can't accurately measure frame rate (or time to render 1 ...
2
votes
3answers
363 views

Is good practice to optimize FPS even when it's above the lower limit to give illusion of movement?

I started over 50 FPS on the iPhone, but now I'm bellow 30 PFS, I've seen most iPhone games clamped to either 60 or 30 FPS, even when 24 or less would give the illusion of movement. I've concidered ...
1
vote
3answers
1k views

How to Handle frame rates and synchronizing screen repaints

I would first off say sorry if the title is worded incorrectly. Okay now let me give the scenario I'm creating a 2 player fighting game, An average battle will include a Map (moving/still) and 2 ...
4
votes
4answers
508 views

Can a high FPS negatively affect how a program runs?

Yeah I know this is a broad question and will get down rated, I'm just hoping for some answer before it gets closed. Anyway, I'm using Slick 2D/Java to play around with graphics. I'm having some ...
-6
votes
1answer
139 views

Is it the class that slows down the game? [closed]

My framerate lastime exceeds 1000 now the highest is 15. I have thousands lines of code in one class(I was still fresh last time and did not think of putting it in another class) Is it the class that ...
3
votes
1answer
1k views

Why is the framerate (fps) capped at 60?

ISSUE I recently moved a project from my laptop to my desktop(machine info below). On my laptop the exact same code displays the fps(and ms/f) correctly. On my desktop it does not. What I mean by ...
1
vote
3answers
1k views

Android, how important is deltaTime?

Im making a game that is getting pretty big and sometimes my thread has to skip a frame, so far I'm not using deltaTime for setting the speed of my different objects in the game because it's still not ...
1
vote
3answers
782 views

My rhythm game runs choppy even with high frame rate

EDIT: [SOLUTION] I posted a possibly explanation for my issue below to anyone who has a similar problem. Hope it helps. I'm coding a rhythm game and the game runs smoothly with uncapped fps. But when ...
3
votes
1answer
85 views

How can I track the frame rate on a mobile device?

I am trying to track the frame rate when performaing certain actions on my mobile device. Scenario: I open my game via the device browser and run through specific actions. Preferably would like the ...