-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Login flow polish #3632
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
Login flow polish #3632
Conversation
|
||
let frames = &FRAMES_DEFAULT; | ||
let idx = if FRAME_TICK.as_millis() > 0 { | ||
let steps = |
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.
I don't believe this is guaranteed to render the frames in order?
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.
I think this is trying to maintain a consistent mapping of frames / time elapsed, but it is possible that frames get dropped. Maybe that's OK?
self.request_frame.schedule_frame_in(FRAME_TICK); | ||
|
||
let frames = &FRAMES_DEFAULT; | ||
let idx = if FRAME_TICK.as_millis() > 0 { |
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 if FRAME_TICK.as_millis() > 0
is always true, but somewhat understandable why it's there...
Description
Tests