Fix CPU performance leak
This commit is contained in:
parent
19b51ae691
commit
d277b6e942
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]]
|
||||
name = "fantastic-rs"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
dependencies = [
|
||||
"log",
|
||||
"serde",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "fantastic-rs"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
2
main.py
2
main.py
|
@ -27,4 +27,4 @@ class Plugin:
|
|||
# startup
|
||||
self.backend_proc = subprocess.Popen([PARENT_DIR + "/bin/backend"])
|
||||
while True:
|
||||
asyncio.sleep(1)
|
||||
await asyncio.sleep(1)
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue