* fixed bug where fceux would eat cpu when not running rom (GTK+)
* minor SDL audio perfomance increase
This commit is contained in:
parent
8586ec1e40
commit
5e82639871
|
@ -173,7 +173,7 @@ WriteSound(int32 *buf,
|
|||
{
|
||||
while(s_BufferIn == s_BufferSize)
|
||||
{
|
||||
SDL_Delay(1);
|
||||
SDL_Delay(0);
|
||||
}
|
||||
|
||||
s_Buffer[s_BufferWrite] = *buf;
|
||||
|
|
|
@ -761,6 +761,8 @@ SDL_GL_LoadLibrary(0);
|
|||
#endif
|
||||
DoFun(frameskip);
|
||||
#ifdef _GTK2
|
||||
else
|
||||
SDL_Delay(10);
|
||||
while(gtk_events_pending())
|
||||
gtk_main_iteration_do(FALSE);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue