Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Add usesTimeTravel flag #20

Merged
merged 1 commit into from Apr 26, 2020
Merged

Add usesTimeTravel flag #20

merged 1 commit into from Apr 26, 2020

Conversation

inamiy
Copy link
Owner

@inamiy inamiy commented Apr 26, 2020

Fixes the problems mentioned in #14 (comment) , #15, and possibly #16 .

  1. Go to Stopwatch
  2. Start Timer
  3. Back to main list
  4. Go to other screen
  5. All events get delayed or malformed due to Stopwatch (heavy task) is still running

After investigation, the slowest task was not in Stopwatch but rather TimeTravel where it collects all previous states as histories.
With having a rapid event-flow, I discovered time-travelling will be the dominant cause of the UI glitches.
This can be simply solved by removing time-travelling feature.

In this PR, usesTimeTravel is introduced so that one can easily test usesTimeTravel = false case, which is the normal non-debug configuration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant