Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] 타이머 실행 간격 오차 개선 #330

Open
1 task
rbgksqkr opened this issue Oct 12, 2024 · 0 comments
Open
1 task

[REFACTOR] 타이머 실행 간격 오차 개선 #330

rbgksqkr opened this issue Oct 12, 2024 · 0 comments
Assignees
Labels
🫧 FE front end ♻️ refactor 리팩토링

Comments

@rbgksqkr
Copy link
Contributor

Description 💭

  • 타이머를 setTimeout 또는 setInterval로 구현했을 때 실행 시점 오차 발생
  • 모바일에서는 오차가 체감되면서 게임 시작 카운트다운 애니메이션이 끊겨보이는 현상 발생
    • setInterval 로 줄어드는 count 상태에 따라 땅콩 개수를 증가시키는데, count가 1초보다 늦게 또는 일찍 감소하면 애니메이션에 보이는 땅콩이 의도한대로 보이지 않음

TODO ✅

  • setInterval 콜백 실행 오차 줄이기

Reference 🔎

https://sirius7.tistory.com/156

@rbgksqkr rbgksqkr added ♻️ refactor 리팩토링 🫧 FE front end labels Oct 12, 2024
@rbgksqkr rbgksqkr added this to the FE Sprint6 milestone Oct 12, 2024
@rbgksqkr rbgksqkr self-assigned this Oct 12, 2024
@rbgksqkr rbgksqkr removed this from the FE Sprint6 milestone Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🫧 FE front end ♻️ refactor 리팩토링
Projects
Status: No status
Development

No branches or pull requests

1 participant