From 178d3441ad7fc4c5daefb1aafc6facb3875ed586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 26 May 2006 17:11:34 +0000 Subject: [PATCH] wait_for_vblank() will now only wait 25ms at maximum (40Hz) - this is needed because there is no VBlank interrupt when the display is turned off (and the code to turn it on again actually calls wait_for_vblank()...). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17597 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/intel_extreme/mode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/add-ons/accelerants/intel_extreme/mode.cpp b/src/add-ons/accelerants/intel_extreme/mode.cpp index 68db6bc0e2..bf09a303a3 100644 --- a/src/add-ons/accelerants/intel_extreme/mode.cpp +++ b/src/add-ons/accelerants/intel_extreme/mode.cpp @@ -105,7 +105,9 @@ create_mode_list(void) void wait_for_vblank(void) { - acquire_sem(gInfo->shared_info->vblank_sem); + acquire_sem_etc(gInfo->shared_info->vblank_sem, 1, B_RELATIVE_TIMEOUT, 25000); + // With the output turned off via DPMS, we might not get any interrupts anymore + // that's why we don't wait forever for it. }