COSTouchVisualizer
COSTouchVisualizer copied to clipboard
CPU pegs to 100% when using COSTouchVisualizerWindow
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.
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.
Cool, good to hear an updated variant is in the works!
Any update on this? We're still using this library and just ran into this problem as well.