kanter icon indicating copy to clipboard operation
kanter copied to clipboard

Extreme CPU usage

Open lukors opened this issue 3 years ago • 0 comments

One core is always used 100% by the program. This needs to be fixed.


The reason is that it was running at an unbounded frame rate. Enabling vsync fixes the issue, but also adds a lot of input lag. This brings CPU utilization down from ~150% to ~30% on my laptop. It can and should be close to zero percent when the user is not interacting with the app, but I'm going to wait for Bevy's official GUI before I do anything like that.

Here are a couple of related issues in the Bevy repo:

  • [ ] https://github.com/bevyengine/bevy/issues/1343
  • [ ] https://github.com/bevyengine/bevy/issues/3317

I'm leaving this issue open as the CPU usage could still be regarded as extreme (considering it should be close to zero) to track progress towards solving these issues in Bevy.

lukors avatar Jan 30 '22 19:01 lukors