mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
Improved SRAM performance (#925)
* Offload NDS SRAM writing to separate thread, debounce writes to two seconds after last flush or DeInit. * Fixed printf messages. * Fixes after CR. * Fixed potential portability issue with time_t
This commit is contained in:
@ -207,7 +207,6 @@ void Thread_Wait(Thread* thread)
|
||||
((QThread*) thread)->wait();
|
||||
}
|
||||
|
||||
|
||||
Semaphore* Semaphore_Create()
|
||||
{
|
||||
return (Semaphore*)new QSemaphore();
|
||||
@ -443,5 +442,9 @@ int LAN_RecvPacket(u8* data)
|
||||
return LAN_Socket::RecvPacket(data);
|
||||
}
|
||||
|
||||
void Sleep(u64 usecs)
|
||||
{
|
||||
QThread::usleep(usecs);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user