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:
mjbudd77 2021-12-17 06:30:29 -05:00
parent c35b18751d
commit 1fa028b6e6
2 changed files with 7 additions and 1 deletions

View File

@ -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();

View File

@ -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