Use Window.requestIdleCallback()
This commit is contained in:
parent
a444637b18
commit
7ce86c3d2a
6 changed files with 59 additions and 26 deletions
|
|
@ -15,7 +15,7 @@ pub enum State {
|
|||
start: Instant,
|
||||
},
|
||||
Poll {
|
||||
request: backend::AnimationFrameRequest,
|
||||
request: backend::IdleCallback,
|
||||
},
|
||||
Exit,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue