Increase Qt video transfer buffer size to further reduce possibility of buffer overrun when transfering frames from emulation to GUI threads. Added input device update code to emulation frame finished callback to ensure that input devices are always updated before screen is redrawn.
This commit is contained in:
parent
c35b18751d
commit
1fa028b6e6
|
@ -4270,6 +4270,12 @@ void consoleWin_t::transferVideoBuffer(void)
|
|||
|
||||
void consoleWin_t::emuFrameFinish(void)
|
||||
{
|
||||
// Process all events before attempting to render viewport
|
||||
QCoreApplication::processEvents();
|
||||
|
||||
// Update Input Devices
|
||||
FCEUD_UpdateInput();
|
||||
|
||||
//printf("EMU Frame Finish\n");
|
||||
|
||||
transferVideoBuffer();
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#define GL_NES_WIDTH 256
|
||||
#define GL_NES_HEIGHT 240
|
||||
#define NES_VIDEO_BUFLEN 3
|
||||
#define NES_VIDEO_BUFLEN 5
|
||||
#define NES_AUDIO_BUFLEN 480000
|
||||
|
||||
struct nes_shm_t
|
||||
|
|
Loading…
Reference in New Issue