- FSC Nightmare
- |
- Noble Member
/* Will you guys make the framerate very smooth and transitional? I am a big fan of Halo 3's framerate and would love to see this realism return in Bungie's next universe. I understand that memory and CPU power is budgeted, but gameplay is a critical element. I was just wondering what the framerate plan was?
I would suggest the framerate function below. This supports up to 100 individual dumb AI running constant animations. Each AI has a hierarchy of nested "If Then" statements that are triggered by the player and/or the environment. Each AI is also affected by a physics engine, damage system, and even responds to global triggers. They also have individual "blunt" collision models that give and receive input. */
/* Also, you need to multiply "fTime" by the "seconds" variable included in "time.h" */
#include <DXUT.h>
#include <time.h>
double fTime = 60.0; // <-- Make sure it's 60 for a 60 FPS
int Framerate(arg c, arg v)
{
//Moving Frame To Frame
void CALLBACK OnFrameMove( double fTime, float fElapsedTime, void* pUserContext );
//Rendering Each Frame
void CALLBACK OnFrameRender( IDirect3DDevice11* pd3dDevice double fTime, float_ fElapsedTime, void* pUserContext );
}
[Edited on 02.13.2012 1:29 PM PST]