Original Post
Dear people, on most codes i saw for md2 or md3, they were not time based or anything like it.. so my question is, is this code the best? or ..
int FramePerSecondA = 25;
int FrameTick = 1/FramePerSecondA;
int TStart, TEnd, TCounter;
render()
{
start = timeGetTime();
TCounter += TEnd-TStart;
if(TCounter => FrameTick){
UpdateModelFrames();
TCounter = TCounter - FrameTick;
}
render + models;
end = timeGetTime();
}
DrawModels()
{
here will be said that for example next frame should be drawn
like :
drawmodel(modelid,frame);
}
something like it
....
Greetz
sorry the code was at bit stupid
[edited by - Fluid FX on August 3, 2002 10:19:16 AM]