From bf97387f26813415d0a4f56d816eeb8e50711b17 Mon Sep 17 00:00:00 2001 From: Kimmy Andersson Date: Sat, 9 Jan 2021 22:18:57 +0100 Subject: 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 --- src/frontend/qt_sdl/Platform.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/frontend/qt_sdl/Platform.cpp') diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp index d3480e4..7c4b553 100644 --- a/src/frontend/qt_sdl/Platform.cpp +++ b/src/frontend/qt_sdl/Platform.cpp @@ -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); +} } -- cgit v1.2.3