use animation best practices in dbmon
This commit is contained in:
parent
2f7c4983f3
commit
4a4bd7a548
8 changed files with 48 additions and 2299 deletions
|
|
@ -35,13 +35,13 @@ m.mount(document.getElementById("app"), {
|
|||
})
|
||||
|
||||
function update() {
|
||||
requestAnimationFrame(update)
|
||||
|
||||
data = ENV.generateData().toArray()
|
||||
|
||||
perfMonitor.startProfile("render")
|
||||
m.redraw()
|
||||
perfMonitor.endProfile("render")
|
||||
|
||||
setTimeout(update, ENV.timeout)
|
||||
}
|
||||
|
||||
update()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue