COSTouchVisualizer icon indicating copy to clipboard operation
COSTouchVisualizer copied to clipboard

CPU pegs to 100% when using COSTouchVisualizerWindow

Open klundberg opened this issue 8 years ago • 3 comments

We recently had to remove this library from our application as it was causing the CPU to be pegged at 100% even when the window's effects were not enabled. We had everything set up with the default configuration.

The problem line looked to be here: https://github.com/conopsys/COSTouchVisualizer/blob/master/Classes/COSTouchVisualizerWindow.m#L222 This timer constantly runs the target method for us even if the app user doesn't have the touch effects enabled at all, which is not ideal. Even if the effect was on, the timer shouldn't run if the visualization is not currently happening.

klundberg avatar Apr 13 '16 15:04 klundberg

Hm... Yeah there are quit a few problems in this library. I'm working on a Swift version, but I might make a pass though this and clean it up. Most of this was written when I had no idea what I was really doing :smile:, but I'm much better now.

joeblau avatar Apr 13 '16 15:04 joeblau

Cool, good to hear an updated variant is in the works!

klundberg avatar Apr 13 '16 18:04 klundberg

Any update on this? We're still using this library and just ran into this problem as well.

lammertw avatar Nov 21 '17 15:11 lammertw