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
18
votes
4 answers

Achieving a constant frame rate in SDL

I'm trying to make an SDL program that runs with a constant frame rate. However I'm finding that even though my program is lagging a lot and skipping a lot of frames (even though it's running at a low frame and isn't rendering much). Do you guys…
SDLFunTimes
  • 745
  • 2
  • 7
  • 13
18
votes
7 answers

controlling FPS limit in OpenGL application

I am trying to find a solid method for being able to set exactly how many FPS I want my OpenGL application to render on screen. I can do it to some extent by sleeping for 1000/fps milliseconds but that doesn't take into account the time needed to…
Tsaras
  • 455
  • 2
  • 4
  • 18
18
votes
4 answers

iOS AVCaptureSession - How to get/set the number of frames per second recorded?

I'm new to AVCaptureSession and wish to better understand how to work with it. So I managed capturing the video stream as separated CIImages and convert them to UIImages. Now I wish to be able to get the number of Frames Per Second captured and…
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
17
votes
10 answers

How do I cap my framerate at 60 fps in Java?

I am writting a simple game, and I want to cap my framerate at 60 fps without making the loop eat my cpu. How would I do this?
William
  • 8,630
  • 23
  • 77
  • 110
17
votes
7 answers

Any way to speed up Python and Pygame?

I am writing a simple top down RPG in Pygame, and I have found that it is quite slow.... Although I am not expecting python or pygame to match the FPS of games made with compiled languages like C/C++ or even Byte Compiled ones like Java, but still…
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
17
votes
3 answers

How do I render a video from a list of time-stamped images?

I have a directory full of images following the pattern .png, where represents milliseconds elapsed since the first image. input.txt contains a list of the interesting images: file '0.png' file '97.png' file '178.png' file…
piedar
  • 2,599
  • 1
  • 25
  • 37
17
votes
3 answers

Is it possible to disable frame-limiting in libGDX?

More specifically, a desktop libGDX-LWJGL application. There are configurations options to disable CPU syncing as well as vsynching, but regardless the application runs at 60fps. This is fine for all practical uses - but out of curiousity if nothing…
Mistodon
  • 627
  • 1
  • 5
  • 12
16
votes
1 answer

Access high fps camera on Android

There are phones with official support for high fps recording, like the Galaxy S5 and S6. I tried both, with both you can record high fps videos (60 or even 120 fps) with the default camera app. (Or on the S6 using Gear VR's "Passthrough Camera"…
scrpn
  • 193
  • 1
  • 2
  • 8
16
votes
3 answers

OpenCV Python Video playback - How to set the right delay for cv2.waitKey()

I used the following code to capture a video file, flip it and save it. #To save a Video File import numpy as np import cv2 cap = cv2.VideoCapture(0) # Define the codec and create VideoWriter object fourcc = cv2.cv.CV_FOURCC(*'XVID') out =…
Clive
  • 1,137
  • 7
  • 19
  • 28
16
votes
4 answers

How do I reduce frames with blending in ffmpeg

I am trying to convert some files into ProRes. One fairly important part of the conversion is: reducing frames from 60 to 30 blending every 2 frames into one and achieving a more fluent movement. (a simple sort of motion blur) I have tried the…
user3213418
  • 169
  • 1
  • 3
15
votes
5 answers

Why are touch events destroying my Android framerate?

I'm developing a game for Android. It's got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen. While they're touching it, onTouchEvent is called (with action = ACTION_MOVE, x = 0 and y = 0)…
mcccclean
  • 7,721
  • 10
  • 32
  • 36
15
votes
2 answers

Pydub - How to change frame rate without changing playback speed

I have a couple audio files that I open in Pydub with AudioSegment. I want to decrease the audio quality from frame rate 22050 to 16000 Hz. (One channel files) If I simply change the frame rate of AudioSegment, what I get is the exact same…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
14
votes
4 answers

lockCanvas() really slow

Testing my game on a slower device (Orange San Francisco aka ZTE Blade) and I have been getting an appalling frame rate. I put some debug code into the draw loop and discovered the following line is taking over 100ms: c =…
Kevin
  • 1,200
  • 1
  • 11
  • 19
14
votes
5 answers

HTML5 Canvas performance - calculating loops/frames per second

I know a few questions have been asked like this one before, such as this: Check FPS in JS? - which did work to some degree, I was able to find out how long each loop took to complete. What I am looking for though is something more readable and…
Sabai
  • 1,579
  • 5
  • 24
  • 40
13
votes
2 answers

What I Have Learned About Unity ScrollRect / ScrollView Optimization / Performance

ScrollView performance is a real drag (get it?), especially on mobile platforms. I frequently found myself getting less that 15 fps which left the user experience feeling jolting and underwhelming. After a lot of research and testing I have compiled…
Phedg1
  • 1,888
  • 3
  • 18
  • 35