Skip to content

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

@rbgksqkr

Description

@rbgksqkr

Description 💭

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

TODO ✅

  • setInterval 콜백 실행 오차 줄이기

Reference 🔎

https://sirius7.tistory.com/156

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions