2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 21:47:59 +00:00

Additional data updates

This commit is contained in:
Jack Andersen
2015-09-27 20:16:41 -10:00
parent 6d1fb5470f
commit d59c649f2f
7 changed files with 17 additions and 4 deletions

View File

@@ -374,7 +374,10 @@ static float ComputeFrames(const std::vector<float>& keyTimes, std::vector<atUin
lastTime = *it;
}
mainInterval = 1.0 / round(1.0 / mainInterval);
float fps = round(1.0 / mainInterval);
if (fps < 15.0)
fps = 15.0;
mainInterval = 1.0 / fps;
framesOut.clear();
framesOut.reserve(keyTimes.size());