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
3
votes
1 answer

Performance monitoring in Windows Phone 7 (power and FPS)

I have 2 questions on performance monitoring in WP7: 1) Enabling the FPS counters is easy, but how do I read current FPS into a variable? Is this even possible in WP7? 2) Is there an API to read current battery level and/or current consumption in…
3
votes
2 answers

How can I speed up my Java game's FPS?

I am making a Java game, and the game lags a lot when I paint out the graphics. The way I am currently painting out the graphics is to make a BufferedImage, get the Graphics2D from it, then do a whole bunch…
Steven Rogers
  • 1,874
  • 5
  • 25
  • 48
3
votes
2 answers

C++ / SDL animation speed

so I am working on a game, following a tutorial online. Currently I have some FPS built into the system, and a simple animation which uses pieces of a sprite like such: if( frameCount > 12 ) frameCount = 0; //hero frames SDL_Rect…
grep
  • 3,986
  • 7
  • 45
  • 67
3
votes
2 answers

XNA Particle system performance

I have a particle system using basic spritebatch, where the particles are being created and destroyed based on decremental alpha value till 0. The perfomance of the system is quite poor on pc, and very poor on xbox, with about a hundred particles…
Paul
  • 55
  • 7
3
votes
2 answers

Why can't my SurfaceView's game loop run a decent FPS?

I've cobbled together a simple game loop, mostly using the techniques that seem be be prevelent, particually in the Killer Game Programming in Java book and in this tutorial I just found: Here Just a simple, timed gameloop with a back buffer. The…
Stretch
  • 173
  • 4
  • 10
3
votes
1 answer

SpriteKit performance drop when frame rate set to 60hz but NOT when 120hz on iPhone 13

I've updated my SpriteKit game to iOS 15 and, when testing on an iPhone 13 Pro, I've discovered frame rate has steadily dropped to around 55-56fps on this device: However, when I set preferredFramesPerSecond to 120 (and the respective Info.plist…
Manny
  • 967
  • 1
  • 6
  • 17
3
votes
0 answers

Options available to a programmer on the Main Game Loop

Could one of you please give me a bit of insight to each one of these 4 topics, I am just a little confused on what it is asking. I have a good idea on what passive and active rendering are, and that the use of active rendering is more sutable for…
Sean
  • 31
  • 1
3
votes
2 answers

Windows Form, Getting FPS?

I'm writing a windows application which is displaying real time data on a map. Is there a simple way to get the FPS (Frames Per Second)? Thanks, couldn't find much on google. This is C#, .NET 4.0.
dave2118
  • 206
  • 6
  • 22
3
votes
1 answer

How to avoid ffmpeg filter_complex overriding the fps of a file?

I'm fairly new to ffmpeg so apologies if this is a simple problem. I'm trying to tile four 60 fps videos using the script below. It works, but the output is at 25 fps. When I try to use -r to force it back to 60, it looks like 25 fps upsampled to…
3
votes
1 answer

how to reduce fps of incoming stream by dropping frames in C

I've got a stream of jpegs with 30FPS. I want to reduce the fps by dropping packets. I can do 15FPS by dropping every second package like: if(frameCount % 2) continue; 20 FPS is also achievable with if(frameCount % 3) continue; I'm struggling to…
kepitto
  • 31
  • 2
3
votes
1 answer

HTML5 video: jump to a specific frame rather than a time position? Or step paused video to next or previous frame?

When I have a HTML5 video object, I can set its currentTime property to jump (seek) to a specific time position. Is there also a way to jump or seek to a specific frame number? Or related: is there a way for a paused video to step or skip to the…
RocketNuts
  • 9,958
  • 11
  • 47
  • 88
3
votes
3 answers

Unity 2D - Animation drops FPS dramatically

I created a 2D sprite animation using the 2d animation package and the 2D Ik package. My character is one sprite sheet (PBS file). In the PBS file all the spites (eyes, mouth, etc, - character is basically a square with a face) are arranged and…
FatMunkey
  • 51
  • 1
  • 6
3
votes
1 answer

Directshow : How to change Size and frame rate of video?

(at first , sorry for my English) I have a DirectShow filter graph like this: and this is my code: HRESULT BuildGraph(IGraphBuilder *pGraph, LPCOLESTR srcFile1) { HRESULT hr = S_OK; //graph builder CComPtr
Maria
  • 344
  • 8
  • 30
3
votes
1 answer

How can I best implement fog of war with Java?

Hello I am an inexperienced programmer and this is my first question on Stack Overflow! I am attempting to implement 'fog of war' in my Java game. This means most of my map begins off black and then as one of my characters moves around parts of the…
Deanwace
  • 31
  • 3
3
votes
1 answer

Calculate FPS with sfml

This question is NOT related to the main loop in sfml. How do I calculate the actual framerate (for example, I have vsync enabled, but the main loop still runs at a high speed), so that it actually displays how fast the screen is updated (not the…
Ruiqi Li
  • 187
  • 14