mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Frameskipping! Complete with GUI! Even my most naive approach resulted in great speeds, even with graphic-intensive games such as Pikmin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3949 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
|
||||
#include "Fifo.h"
|
||||
|
||||
volatile bool g_bSkipCurrentFrame = false;
|
||||
|
||||
extern u8* g_pVideoData;
|
||||
|
||||
@ -77,6 +78,10 @@ u8* FAKE_GetFifoEndPtr()
|
||||
return &videoBuffer[size];
|
||||
}
|
||||
|
||||
void Fifo_SetRendering(bool bEnabled) {
|
||||
g_bSkipCurrentFrame = !bEnabled;
|
||||
}
|
||||
|
||||
// Executed from another thread, no the graphics thread!
|
||||
// Basically, all it does is set a flag so that the loop will eventually exit, then
|
||||
// waits for the event to be set, which happens when the loop does exit.
|
||||
|
Reference in New Issue
Block a user