mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-23 07:49:48 +00:00
Allow more rate estimation deviation.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@198 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
parent
03ca427b8d
commit
5eb81ff36a
@ -20,10 +20,10 @@
|
||||
#include <cstdlib>
|
||||
|
||||
static long limit(long est, const long reference) {
|
||||
if (est > reference + (reference >> 7))
|
||||
est = reference + (reference >> 7);
|
||||
else if (est < reference - (reference >> 7))
|
||||
est = reference - (reference >> 7);
|
||||
if (est > reference + (reference >> 6))
|
||||
est = reference + (reference >> 6);
|
||||
else if (est < reference - (reference >> 6))
|
||||
est = reference - (reference >> 6);
|
||||
|
||||
return est;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user