Improve framerate
This commit is contained in:
parent
50139be273
commit
dd205b2d9e
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -73,8 +73,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
||||||
if i >= frames.GetLength() {
|
if i >= frames.GetLength() {
|
||||||
i = 0
|
i = 0
|
||||||
}
|
}
|
||||||
// Artificially wait between reponses.
|
// Artificially wait between responses.
|
||||||
time.Sleep(time.Millisecond * 70)
|
time.Sleep(time.Millisecond * 69)
|
||||||
|
|
||||||
// Clear screen
|
// Clear screen
|
||||||
clearScreen := "\033[2J\033[H"
|
clearScreen := "\033[2J\033[H"
|
||||||
|
|
Loading…
Reference in a new issue