Fix CPU performance leak

This commit is contained in:
NGnius (Graham) 2022-07-26 16:33:30 -04:00
parent 19b51ae691
commit d277b6e942
4 changed files with 4 additions and 3 deletions

2
backend-rs/Cargo.lock generated
View file

@ -106,7 +106,7 @@ dependencies = [
[[package]] [[package]]
name = "fantastic-rs" name = "fantastic-rs"
version = "0.3.0" version = "0.3.1"
dependencies = [ dependencies = [
"log", "log",
"serde", "serde",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "fantastic-rs" name = "fantastic-rs"
version = "0.3.0" version = "0.3.1"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View file

@ -27,4 +27,4 @@ class Plugin:
# startup # startup
self.backend_proc = subprocess.Popen([PARENT_DIR + "/bin/backend"]) self.backend_proc = subprocess.Popen([PARENT_DIR + "/bin/backend"])
while True: while True:
asyncio.sleep(1) await asyncio.sleep(1)

View file

@ -156,6 +156,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
ctx.stroke(); ctx.stroke();
ctx.fill(); ctx.fill();
} }
console.debug("Rendered fan graph canvas frame", frameCount);
//console.debug("Drew canvas with " + curveGlobal.length.toString() + " points; " + width.toString() + "x" + height.toString()); //console.debug("Drew canvas with " + curveGlobal.length.toString() + " points; " + width.toString() + "x" + height.toString());
//ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); //ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
//ctx.fillStyle = '#000000'; //ctx.fillStyle = '#000000';