Questions tagged [frame-rate]

Frame rate (also known as frame frequency) is the frequency (rate) at which an imaging device produces unique consecutive images called frames. The term applies equally well to computer graphics, video cameras, film cameras, and motion capture systems. Frame rate is most often expressed in frames per second (FPS)

Frame rate (also known as frame frequency) is the frequency (rate) at which an imaging device produces unique consecutive images called frames. The term applies equally well to computer graphics, video cameras, film cameras, and motion capture systems. Frame rate is most often expressed in frames per second (FPS)

More information at http://en.wikipedia.org/wiki/Frame_rate

1702 questions
13
votes
3 answers

Show FPS in QML

Is there a "simple" way to show the FPS (frame rate) in a QML/c++ application. All animations and views are done in QML and the application logic is in c++. I already tried setting QML_SHOW_FRAMERATE in Linux before starting the application but it…
luffy
  • 2,246
  • 3
  • 22
  • 28
13
votes
6 answers

How to correctly calculate FPS in XNA?

I wrote a component to display current FPS. The most important part of it is: public override void Update(GameTime gameTime) { elapseTime += (float)gameTime.ElapsedRealTime.TotalSeconds; frameCounter++; if…
Tomek Tarczynski
  • 2,785
  • 8
  • 37
  • 43
13
votes
3 answers

Poor performance with SKShapeNode in Sprite Kit

I'm making a "Achtung die kurve"-clone in Sprite Kit. For the constantly moving lines/players I'm using A CGMutablePathRef along with an SKShapeNode. In the update method I'm doing this // _lineNode is an instance of SKShapeNode and path is…
oyvindhauge
  • 3,496
  • 2
  • 29
  • 45
13
votes
5 answers

XNA/MonoGame: Getting the Frames Per Second

I am trying to get the current FPS of my game, however I can only find methods that updates the FPS variable every second. E.g. https://github.com/CartBlanche/MonoGame-Samples/blob/master/Draw2D/FPSCounterComponent.cs and…
Jeff
  • 12,085
  • 12
  • 82
  • 152
13
votes
2 answers

CSS Animations alter Frame Rate

Looking at CSS animation to replace animated GIFs in loading wheels. There is a basic example here http://jsfiddle.net/kFmY8/448/ #me { -webkit-animation: rotation 2s infinite linear; } @-webkit-keyframes rotation { from {-webkit-transform:…
Walrus
  • 19,801
  • 35
  • 121
  • 199
12
votes
2 answers

Android front facing camera is recording videos between 7.5 and 8.0 - setVideoFrameRate does not work - Samsung galaxy s2

I'm trying to record videos using the front facing camera, following is the code snippet, I'm setting the setVideoFrameRate to 29, but the recorded video is having the fps between 7.5 and 8. I need the video fps of the vidio recorded 29. …
user566502
  • 121
  • 3
12
votes
1 answer

Java2D: interaction between XWindows events and frame rate

I'm experiencing an unexpected interaction between system events and the window refresh rate in simple Java2D applications on Linux/XWindows. It is best demonstrated with the small example below. This program creates a small window in which a…
Thomas
  • 17,016
  • 4
  • 46
  • 70
12
votes
3 answers

Can I create a VFR video from timestamped images?

First, I have almost zero experience in making videos from images. What I have is a set of BMP timestamped images from which I want to generate a video. Since the timestamps are not equally spaced, I cannot simply use software that create…
Beginner
  • 325
  • 5
  • 16
12
votes
1 answer

SpriteKit, Seemingly at Random, Drops To 40 FPS

I'm writing an iOS game, using SpriteKit. At, apparently random, times during gameplay, the frame-rate will drop from 60 FPS to 40 FPS (always 40). I'm running this on an iPhone 6. The bug is present when building for release and debug. I typically…
baxterma
  • 811
  • 1
  • 11
  • 22
12
votes
2 answers

How to get frame rate (fps) up in Python + Pygame?

I am working on a little card-swapping world-travel game that I sort of envision as a cross between Bejeweled and the 10 Days geography board games. So far the coding has been going okay, but the frame rate is pretty bad... currently I'm getting low…
Jordan Magnuson
  • 864
  • 3
  • 10
  • 21
11
votes
1 answer

Is there a way to remove 60 fps cap in GLFW?

I'm writting a game with OGL / GLFW in c++. My game is always running at 60 fps and without any screen tearing. After doing some research, it seems that the glfwSwapInterval() function should be able to enable/disable V-sync or the 60fps cap.…
Manu
  • 209
  • 1
  • 3
  • 13
11
votes
2 answers

lower fps when using ffmpeg to convert mp4 to gif

I am using ffmpeg to convert high quality videos to gif, most of the videos are 60fps and over 720p, but when I use the code below, to convert the video to gif, I get very low fps for the gif…
Muhia NJoroge
  • 539
  • 1
  • 5
  • 16
11
votes
2 answers

Recording video with unknown framerate with FFmpeg

I am recording video with FFmpeg and I would like the frame rate it is written with to at least be in the right ballpark. Right now I take the frame rate that my input claims to have and use that to set the frame rate (time_base) for my output video…
Chris
  • 574
  • 7
  • 24
11
votes
3 answers

Where in metadata of a video in html5 is the fps saved?

In order to fully implement my custom html5 video player, I need the the exact frame rate of a video. However I have not been able to find it yet and am using a standard value of 25. Typically videos have a frame rate value in meta-data so I…
Hasan Wajahat
  • 1,717
  • 2
  • 16
  • 16
11
votes
4 answers

Game Development: How to limit FPS?

I'm writing a game, and I saw the FPS algorithm doesn't work correctly (when he have to calculate more, he sleeps longer...) So, the question is very simple: how to calculate the sleeptime for having correct FPS? I know how long it took to update…
Martijn Courteaux
  • 67,591
  • 47
  • 198
  • 287