Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Fix CPU performance leak
Browse files Browse the repository at this point in the history
  • Loading branch information
NGnius committed Jul 26, 2022
1 parent 11608e8 commit dd47277
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fantastic-rs"
version = "0.3.0"
version = "0.3.1"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ async def _main(self):
# startup
self.backend_proc = subprocess.Popen([PARENT_DIR + "/backend"])
while True:
asyncio.sleep(1)
await asyncio.sleep(1)
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit dd47277

Please sign in to comment.