Commit framelimiter patch from issue 1025

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3537 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-06-22 12:02:58 +00:00
parent 1f590b8900
commit d3bf69a154
1 changed files with 3 additions and 0 deletions

View File

@ -696,6 +696,9 @@ void Callback_VideoCopiedToXFB()
if (Timer.GetTimeDifference() >= 1000)
{
// reset timer for framelimiter, placed here so no additional check for 1000ms is required -> don't delete please :)
old_frametime = 0;
// Time passed
float t = (float)(Timer.GetTimeDifference()) / 1000.f;