If I have a video that plays at 30fps, then the duration of each frame is 1/30th of a second or 33.333333... milliseconds.
Assume you were implementing a video player, how would you handle the fact that the duration of each frame is represented by a repeating decimal?
For example, if you truncate the duration of the 1st 29 frames to 33...
I have a function that calculates the next frame in an animation of various objects moving in both X and Y axis [ I call it frameRender() ] and a function that applies that resulting frame to the objects [ I call that frameDisplay() ]. The objects don't just move from point A to B, they move constantly, always receiving new target coords...
My Flex app seems to have different frame rates in Chrome and Firefox. I have a preloader that is essentially a splash screen that fades away with a Timer, and it is this part that has the noticeable frame rate difference--it fades away faster in Firefox. The odd thing is that any Timers I'm using in the rest of the app seem to behave un...
I'm in the process of creating a 2D game in OpenGL ES for the iPhone. I'm calling my game loop using NSTimer at an interval of 0.002 (60 fps) with repeats set to 'NO' (I'm running the NSTimer again from within the function as recommended):
-(void)gameLoop:(id)sender {
double currTime=(double)CACurrentMediaTime();
m_FPS_framesTh...
Hello,
I'm making an application which imports several videos from different sources and joins them together. The problem is that the source videos can be at different framerates - so for example I want to join a 2 fps video (call it Video A) to a 5fps video (Video B). I want to keep it looking right in the final export.
I could pick a...
Hello,
I have a compiled flash animation (swf) embeded into a HTML document using the object tag.
Question: There's a posibility to change the original SWF framerate using some params in the object tag?
I don't have the source code (FLA).
I want to decrease the framerate.
Thank you for any help,
<object classid="clsid:D27CDB6E-AE6D...
I'm experimenting a bit with XNA 4.0, following tutorials and creating very basic stuff (like a triangle and some lines ;-)). While doing this, I noticed that all my applications never run at more than 50-51 fps (with Fraps). It's not that I'm running heavy programs on a slow computer or graphics card (Ati HD4870), it must have something...
I've been having some trouble with choppy movement of objects in a game.
If the frame rate isn't capped, the game runs smooth.
If I cap the frame rate at say, 60 fps, the movement is choppy.
An object's movement looks like this...
m_distance += m_speed * GetFrameTime()
Where speed is in pixels per second, and GetFrameTime() returns...
Hi,
here's the problem: I have a custom hardware device and I have to grab images from it in C#/WPF and display them in a window, all with 120+ FPS.
The problem is that there is no event to indicate the images are ready, but I have to constantly poll the device and check whether there are any new images and then download them.
There a...