Add Cache Draws option

This commit is contained in:
luboslenco
2019-11-03 12:42:10 +01:00
parent f2c61ba9f1
commit 40b4c00ff5
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -51,6 +51,10 @@ class BoxPreferences {
UITrait.inst.hwnd1.redraws = 2;
UITrait.inst.hwnd2.redraws = 2;
}
UITrait.inst.cacheDraws = ui.check(Id.handle({selected: UITrait.inst.cacheDraws}), "Cache Draws");
if (ui.isHovered) ui.tooltip("Enabling may reduce GPU usage");
// ui.text("Node Editor");
// var gridSnap = ui.check(Id.handle({selected: false}), "Grid Snap");