Fix CPU performance leak

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

2
backend-rs/Cargo.lock generated
View file

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

View file

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

View file

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

View file

@ -156,6 +156,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
ctx.stroke();
ctx.fill();
}
console.debug("Rendered fan graph canvas frame", frameCount);
//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.fillStyle = '#000000';