* fixed bug where fceux would eat cpu when not running rom (GTK+)

* minor SDL audio perfomance increase
This commit is contained in:
punkrockguy318 2009-12-30 22:01:15 +00:00
parent 8586ec1e40
commit 5e82639871
2 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,7 @@ WriteSound(int32 *buf,
{
while(s_BufferIn == s_BufferSize)
{
SDL_Delay(1);
SDL_Delay(0);
}
s_Buffer[s_BufferWrite] = *buf;

View File

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