osudroid / osu-droid

Home Page:http://osudroid.moe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Touch events in gameplay are written to replay using update thread clock

Rian8337 opened this issue · comments

In gameplay, touch events are handled by the main thread. However, these events are written to replay using update thread's clock, which causes time inaccuracies in replays (secPassed belongs to the update thread):

replay.addPress(secPassed, gamePoint, id);

replay.addMove(secPassed, gamePoint, id);

replay.addUp(secPassed, id);