@@ -20,11 +20,6 @@ namespace impeller {
20
20
21
21
static constexpr size_t kMaxFramesInFlight = 3u ;
22
22
23
- // Number of frames to poll for orientation changes. For example `1u` means
24
- // that the orientation will be polled every frame, while `2u` means that the
25
- // orientation will be polled every other frame.
26
- static constexpr size_t kPollFramesForOrientation = 1u ;
27
-
28
23
struct KHRFrameSynchronizerVK {
29
24
vk::UniqueFence acquire;
30
25
vk::UniqueSemaphore render_ready;
@@ -334,11 +329,15 @@ KHRSwapchainImplVK::AcquireResult KHRSwapchainImplVK::AcquireNextDrawable() {
334
329
// ----------------------------------------------------------------------------
335
330
// / Get the next image index.
336
331
// /
332
+ // / @bug Non-infinite timeouts are not supported on some older Android
333
+ // / devices and the only indication we get is log spam which serves to
334
+ // / add confusion. Just use an infinite timeout instead of being
335
+ // / defensive.
337
336
auto [acq_result, index ] = context.GetDevice ().acquireNextImageKHR (
338
- *swapchain_, // swapchain
339
- 1'000'000'000 , // timeout (ns) 1000ms
340
- *sync ->render_ready , // signal semaphore
341
- nullptr // fence
337
+ *swapchain_, // swapchain
338
+ std::numeric_limits< uint64_t >:: max () , // timeout (ns)
339
+ *sync ->render_ready , // signal semaphore
340
+ nullptr // fence
342
341
);
343
342
344
343
switch (acq_result) {
0 commit comments