diff options
Diffstat (limited to 'src/core/hw/lcd.cpp')
| -rw-r--r-- | src/core/hw/lcd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cpp index 6468053f2..b57563a73 100644 --- a/src/core/hw/lcd.cpp +++ b/src/core/hw/lcd.cpp | |||
| @@ -11,6 +11,8 @@ | |||
| 11 | 11 | ||
| 12 | #include "video_core/video_core.h" | 12 | #include "video_core/video_core.h" |
| 13 | 13 | ||
| 14 | #include "core/hle/kernel/thread.h" | ||
| 15 | |||
| 14 | namespace LCD { | 16 | namespace LCD { |
| 15 | 17 | ||
| 16 | Registers g_regs; | 18 | Registers g_regs; |
| @@ -130,9 +132,11 @@ template void Write<u8>(u32 addr, const u8 data); | |||
| 130 | void Update() { | 132 | void Update() { |
| 131 | u64 current_ticks = Core::g_app_core->GetTicks(); | 133 | u64 current_ticks = Core::g_app_core->GetTicks(); |
| 132 | 134 | ||
| 135 | // Fake a vertical blank | ||
| 133 | if ((current_ticks - g_last_ticks) >= kFrameTicks) { | 136 | if ((current_ticks - g_last_ticks) >= kFrameTicks) { |
| 134 | g_last_ticks = current_ticks; | 137 | g_last_ticks = current_ticks; |
| 135 | VideoCore::g_renderer->SwapBuffers(); | 138 | VideoCore::g_renderer->SwapBuffers(); |
| 139 | Kernel::WaitCurrentThread(WAITTYPE_VBLANK); | ||
| 136 | } | 140 | } |
| 137 | } | 141 | } |
| 138 | 142 | ||