Fix CPU performance leak
This commit is contained in:
parent
11608e8a29
commit
dd4727770a
4 changed files with 4 additions and 3 deletions
2
backend-rs/Cargo.lock
generated
2
backend-rs/Cargo.lock
generated
|
@ -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",
|
||||||
|
|
|
@ -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]
|
||||||
|
|
2
main.py
2
main.py
|
@ -27,4 +27,4 @@ class Plugin:
|
||||||
# startup
|
# startup
|
||||||
self.backend_proc = subprocess.Popen([PARENT_DIR + "/backend"])
|
self.backend_proc = subprocess.Popen([PARENT_DIR + "/backend"])
|
||||||
while True:
|
while True:
|
||||||
asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
|
@ -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';
|
||||||
|
|
Loading…
Reference in a new issue