mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00: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:
parent
9cbfadb885
commit
51ddedf512
21 changed files with 126 additions and 19 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue