- Increased the emulation signal priority. The emulation speed is now more stable.
- Fixed a bug in the frameskipping computation code and adjusted the values to make its time constant higher.
This commit is contained in:
bgk 2008-09-13 11:19:21 +00:00
parent 3c70cf79a8
commit 1a5e6f0835
2 changed files with 3 additions and 6 deletions

View File

@ -36,7 +36,6 @@ int systemRedShift;
int systemGreenShift; int systemGreenShift;
int systemBlueShift; int systemBlueShift;
int systemColorDepth; int systemColorDepth;
int systemDebug;
int systemVerbose; int systemVerbose;
int systemSaveUpdateCounter; int systemSaveUpdateCounter;
int systemFrameSkip; int systemFrameSkip;
@ -46,7 +45,6 @@ u16 systemGbPalette[24];
int systemThrottle = 0; int systemThrottle = 0;
int emulating; int emulating;
bool debugger;
int RGB_LOW_BITS_MASK; int RGB_LOW_BITS_MASK;
// Extra vars, only used for the GUI // Extra vars, only used for the GUI

View File

@ -805,7 +805,6 @@ void Window::vInitSystem()
#endif #endif
systemColorDepth = 32; systemColorDepth = 32;
systemDebug = 0;
systemVerbose = 0; systemVerbose = 0;
systemSaveUpdateCounter = SYSTEM_SAVE_NOT_UPDATED; systemSaveUpdateCounter = SYSTEM_SAVE_NOT_UPDATED;
systemFrameSkip = 2; systemFrameSkip = 2;
@ -1405,9 +1404,9 @@ void Window::vComputeFrameskip(int _iRate)
iFrameskipAdjust--; iFrameskipAdjust--;
} }
if (iFrameskipAdjust <= -2) if (iFrameskipAdjust <= -4)
{ {
iFrameskipAdjust += 2; iFrameskipAdjust = 0;
if (systemFrameSkip < 9) if (systemFrameSkip < 9)
{ {
systemFrameSkip++; systemFrameSkip++;
@ -1558,7 +1557,7 @@ void Window::vStartEmu()
} }
m_oEmuSig = Glib::signal_idle().connect(sigc::mem_fun(*this, &Window::bOnEmuIdle), m_oEmuSig = Glib::signal_idle().connect(sigc::mem_fun(*this, &Window::bOnEmuIdle),
Glib::PRIORITY_DEFAULT_IDLE); Glib::PRIORITY_HIGH_IDLE + 30);
} }
void Window::vStopEmu() void Window::vStopEmu()