Giter VIP home page Giter VIP logo

Comments (4)

EmmetSchuler avatar EmmetSchuler commented on June 18, 2024

I can provide some feedback here, maybe try to revive this issue a little bit. Using Airpods pro 2 on Android, Bluetooth delay is consistently around 300ms (0.3 of a second).
However the piece's sound delay ranges from half a second to sometimes multiple seconds. This inconsistency in timing leads me to believe that the majority of this delay stems from the app itself.

I was able to get this delay on video with a screen capturer. Because of the inconsistent timings of piece sounds, I'll share a few moments of long delays, and shorter delays.

Here's a long delay: these only happen occasionally, maybe 5% of the time.
https://github.com/lichess-org/mobile/assets/108140722/36b6eb38-adc5-44f1-be06-23116726f7fb

Here's a medium delay, these happen frequently, yet sporadically:
https://github.com/lichess-org/mobile/assets/108140722/2daab366-f072-43ad-b112-645b043ed081

Finally, here are some examples where delay isn't really present:
https://github.com/lichess-org/mobile/assets/108140722/8c04ecab-db50-417b-99ca-6653d830ed1e

All of these examples were taken from the same game while using Airpods pro 2 on Android 14.

from mobile.

EmmetSchuler avatar EmmetSchuler commented on June 18, 2024

To add to this, I have noticed the same trend, where the longer the interval between when a move was last played and the next move, the larger the delay heard. The large delay, as shown above, was played after 11 seconds of thinking.

from mobile.

veloce avatar veloce commented on June 18, 2024

If it's coming from the app, no idea where it comes from. But this where to look at: https://github.com/lichess-org/flutter-soundpool

from mobile.

EmmetSchuler avatar EmmetSchuler commented on June 18, 2024

Two ideas that I saw there were sound cache issues, and Bluetooth going into a low power state, and having to wake up, causing a delay.
I was able to replicate the delay by waiting around 15 seconds before making a move. The longer I waited the more delay I could get.
https://github.com/lichess-org/mobile/assets/108140722/c379bb36-a48e-4f27-a088-0d2b3e5be5b2

from mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.