Permalink
Browse files

Reducing the frequency of updates, to lower the ridiculous CPU usage.

  • Loading branch information...
1 parent 056ef45 commit 70b6d6541c678cb2b24553f2b31aeaa053c8b10d @ELLIOTTCABLE committed Jun 9, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 YRSolcounter.m
View
@@ -19,7 +19,7 @@ -(id) initWithBundle: (NSBundle*)bundle {
registerDefaults: [NSDictionary dictionaryWithContentsOfFile:
[bundle pathForResource: @"UserDefaults" ofType: @"plist"]]];
- timer = [NSTimer scheduledTimerWithTimeInterval: 0.0
+ timer = [NSTimer scheduledTimerWithTimeInterval: 0.0864
target: self
selector: @selector(handleTimer:)
userInfo: nil
@@ -34,14 +34,16 @@ -(id) initWithBundle: (NSBundle*)bundle {
[textField setFrame: NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width, frame.size.height - 1)];
NSURL *fontURL = [NSURL fileURLWithPath: [[self bundle] pathForResource: @"FertigoPro-Truncated"
- ofType: @"otf"
- inDirectory: @"Fonts"]];
+ ofType: @"otf"
+ inDirectory: @"Fonts"]];
// Core Foundation pain
radixFont = CTFontCreateWithGraphicsFont(
CGFontCreateWithDataProvider(CGDataProviderCreateWithURL((CFURLRef)fontURL)), 14.0, NULL, NULL);
// end Core Foundation pain
+ NSLog(@"radixFont: %@", radixFont);
+
[self handleTimer: nil];
[nib dealloc];

0 comments on commit 70b6d65

Please sign in to comment.