Skip to content

Commit

Permalink
Remove sleep on process
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Sep 25, 2024
1 parent 2d594f3 commit 0473556
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@ class PaperVision(
}

fun process() {
if(!window.visible) {
Thread.sleep(100) // reduce CPU usage
}

IdElementContainerStack.threadStack.push(nodes)
IdElementContainerStack.threadStack.push(attributes)
IdElementContainerStack.threadStack.push(links)
Expand Down

0 comments on commit 0473556

Please sign in to comment.