-
Notifications
You must be signed in to change notification settings - Fork 43
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
chore: replay screenshot #142
Conversation
|
||
logger.info("Requesting beers list...") | ||
URLSession.shared.dataTask(with: url) { _, _, _ in | ||
// guard let url = URL(string: "https://api.punkapi.com/v2/beers") else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this API does not exist anymore, the sample has to be changed
// TODO: add debouncer with debouncerDelayMs to take into account how long it takes to execute the | ||
// snapshot method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you cannot offload this from the main thread, a debouncer mechanism would be handy, can be separated to PR to get this out of the door since the timer calls snapshot
every 500ms already instead of for every frame
@@ -96,6 +96,8 @@ | |||
windowViews.setObject(snapshotStatus, forKey: view) | |||
} | |||
|
|||
// TODO: IncrementalSnapshot, type=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not needed if we make the screenshot
the default option since it is always a single image anyway, unless at some point we try to optimize the data transfer by breaking a full image in tiles and only sending the ones that have changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ⚡ 📷
💡 Motivation and Context
💚 How did you test it?
📝 Checklist