fps

Calculating frames per second in a game

What's a good algorithm for calculating frames per second in a game? I want to show it as a number in the corner of the screen. If I just look at how long it took to render the last frame the number changes too fast. Bonus points if your answer updates each frame and doesn't converge differently when the frame rate is increasing vs decr...

How to create a FPS game?

I would like to know How to create a fps-game with SDL lib? Are there any books that explain with examples? ...

streaming media streaming speed confusion

Hello everyone, I am always confused about two parameters about streaming media -- fps (frame per second) and bit rate (e.g. 256k bps, 512k bps, etc.). I do not want to know the mathematical and algorithm internals, and I just want to make it clear whether my following understanding is correct. I think 15 fps and 256 bps, means for ea...

[Java] getting strange results from framerate code

I'm trying to keep my game at 60fps, but I'm getting strange results from my code like "2-8000 fps" Why isn't this staying at 60? public static void main(String[] args) { joglplat m = new joglplat(); while(true){ long startTime = System.nanoTime() / 1000000; try { // 12345...

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? ...

Flash Player magical frame rate

A long time ago (5+ years) I read an article about optimal frame rates for the Flash Player. The article reasoned through some calculations that 31 frames per second was the optimal fps to run your movies at and seemed, at the time, logical to me and have been using 31 fps ever since. However, I have forgotten the reasoning from that ar...

Are there any other methods for a marketplace with direct-to-seller payment other than Amazon Flexible Payment Services (FPS)?

Amazon Flexible Payment Services has functionality built in to allow sellers to receive payment directly into their Amazon Payments Business account rather than going to the marketplace owner. (See this marketplace example.) This money can then be withdrawn at the leisure of the seller. The nice thing about this setup is that I, as th...

iPhone OpenGL fps test

Anyone can tell me how to get and display the fps (frame rate) of a running program on screen? ...

How to get games' FPS (with OpenGL) to like 800 FPS

Hi! How can we run a OpenGL applications (say a games) in higher frame rate like 500 - 800 FPS ? For a example AOE 2 is running with more than 700 FPS (I know it is about DirectX). Eventhough I just clear buffers and swap buffers within the game loop, I can only get about 200 (max) FPS. I know that FPS isn't a good messurenment (and al...

iPhone OpenGl render text

Does anyone know how can i render a string on the iphone? Its for displaying my frame per second with =p ...

Loaded object in ActionScript3 with higher FPS

How can I load a swf in ActionScript 3 with a higher fps than the instance doing the loading with Loader? Thanks! ...

iPhone SDK - How do you make a UIView that responds to audio input?

I am developing an app that uses Core Graphics and Audio Queue Services to generate an image that changes with the input from the iPhone's mic.  Some sort of interaction between Core Graphics and Audio Queue Services is killing my frame rate, keeping it at about 10 fps no matter what I do.  Profiling with Instruments tells me that my pro...

Good Usage Based Payment Service

Amazon Flexible Payments Service seems like the perfect service. It is exactly what we're looking for. Unfortunately, since we are not based in US (based in UK instead) it is not available to us. I was wondering if anyone knew of a similar service which we can use? We would like to sell products in both US Dollars and GB Pounds. We nee...

All of a sudden, my Amazon FPS signature string is invalid.

What could be wrong? All of a sudden, I'm getting an "invalid signature string" error when I try to process payment. Here is an example of one form: <form action="https://authorize.payments.amazon.com/pba/paypipeline" method="post"> <input type="hidden" name="abandonUrl" value="http://www.customerfind.com/canceled.php" > <input type="hi...

WGL: No double buffering + multi sampling = FAIL ?

I usually create a pixel format using wglChoosePixelFormatARB() with these arguments (among others): WGL_DOUBLE_BUFFER_ARB = GL_TRUE WGL_SAMPLE_BUFFERS_ARB = GL_TRUE WGL_SAMPLES_ARB = 4 i.e. doubke buffering on and x4 multi sampling. This works just fine. But when I try to turn of the double buffering: WGL_DOUBLE_BUFFER_ARB = GL_FALS...

How to verify Amazon FPS/SimplePay IPN (Instant Payment Notification), using version 2?

I've looked through the documentation, I've tried downloading various example code, and I've tried hacking various permutations. After a full day's worth of work, I'm spent, and throwing in the towel. So now I'm begging for some help. Can someone please post a PHP class or function, wherein I can simply verify that the ping to my IPN sc...

Cocos2d on application start gives random fps drop?

Hello, I am developing an iphone game using cocos2d and have it set to to show the FPS. Now most of the time the application will start and run at 60 fps, However apparently randomly sometimes the application will start and top at only 40 fps. This does not happen often and seems to happen only when you quit the application and restar...

Counting digits in a float

I am following some beginner tutorials for OpenGL in c++ but as I started off as a c# programmer it has made me take a lot of things for granted. So my problem occurred when I was debug printing my FPS reading to the output. I think the method was something like DebugPrintString off the top of my head which took a char* and basically i w...

FPS how calculate this?

In my OpenGL book, it says this: "What often happens on such a system is that the frame is too complicated to draw in 1/60 second, so each frame is displayed more than once. If, for example, it takes 1/45 second to draw a frame, you get 30 fps, and the graphics are idle for 1/30 1/45 = 1/90 second per frame, or one-third of t...

How do I generate a signature for a settle request in Amazon FPS Marketplace?

The documentation is really awful, and while creating a button to reserve a credit card payment is fairly straightforward, being able to release that payment is a pain. I'm having most trouble with actually generating that signature. Anyone use FPS before and have an idea? Thanks! ...