Set TUI FPS (#2783)

New version of Cursive allows to set fps, the existing  set_autorefresh sets 30 fps. This change decreases CPU usage from 50-65% to 15-25% on my machine.
This commit is contained in:
hashmap
2019-04-30 02:04:36 +02:00
committed by Gary Yu
parent 304ae444ab
commit 3d0f9bd0d3
2 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ impl UI {
.send(ControllerMessage::Shutdown)
.unwrap();
});
grin_ui.cursive.set_autorefresh(true);
grin_ui.cursive.set_fps(3);
grin_ui
}