Questions tagged [cadisplaylink]

A CADisplayLink object is a timer object that allows your application to synchronize its drawing to the refresh rate of the display.

137 questions
0
votes
1 answer

Variables not updating while using CADisplayLink

I cannot get the variables to change when I update them. The method "reCenterYaw" fires when I touch the button and the variable "self.hasYawCenterPointBeenSet" gets updated within the method but when "updateCycle" method comes back around the…
0
votes
1 answer

How do I replace this NSTimer with a CADisplayLink?

I realize that a CADisplayLink would be better suited for the nature of my current project, however, i can't quite figure out how to implement a CADisplayLink and replace my NSTimer. below is the code for my NSTimer Movement = [NSTimer…
0
votes
1 answer

Do the UIKit animation blocks e.g animateWithDuration:animations:completion use CADisplaylink?

A straightforward question I hope.. I've been looking everywhere for an answer to this question, but can't seem to find one. Does anyone know? Do the UIKit animation blocks operate using a displaylink?
Geoff H
  • 3,107
  • 1
  • 28
  • 53
0
votes
0 answers

Should I use multiple CADisplayLink objects for each cell in collection view or use a single displayLink and forward callbacks

What's more efficient with CADisplayLink? Having multiple instances, one for each cell, or having a single instance and forwarding calls to each cell?
rounak
  • 9,217
  • 3
  • 42
  • 59
0
votes
2 answers

CADisplayLink & UIView Animations Unreliable

I am trying to create an Animations Manager class, which will handle recursive animations for me. It is working, but is being unreliable. e.g Sometimes, when using it the animations happen "back to back" as it were, with no delay between them. Other…
anon
0
votes
2 answers

How to update programmatically generated UILabels using CADisplayLink?

I have a number of programmatically generated UILabels in a UIView (one for each record in the database). I want these to update periodically (say once every 5 seconds) but since they're dynamic it's proving tough to get a "handle" on them to change…
Gerard
  • 4,818
  • 5
  • 51
  • 80
0
votes
1 answer

Jumpy CADisplayLink Animation

As detailed in a previous post (Here), I'm creating an animation that starts at an initial angle and moves to an ending angle. I've decided to use CADisplayLink for this animation because the animation needs to run as fast as possible during user…
J Kagney
  • 239
  • 1
  • 4
  • 9
0
votes
0 answers

CADisplayLink frameInterval fps difference when using multiple OpenGL views

So this isn't exactly a real problem for me, but I would just like to know if anyone knows why this is happening. I have 2 views that are side by side, although only one is visible at a time on screen, but both are active at the same time (need…
Fonix
  • 11,447
  • 3
  • 45
  • 74
0
votes
2 answers

CADisplay link seems to be speeding up each time method is called

I'm working on an iPhone app and in my app there's an object that moves from the top to the bottom of the screen. To do this I use a CADisplay link. Once the object leaves the screen it is supposed to restart its route. The problem that I'm…
Dave123
  • 306
  • 2
  • 4
  • 13
0
votes
2 answers

App stops receiving NSTimer selector callbacks during any UI scrolling operation

I have an OpenGL animation drawing on the main window fired by an NSTimer. If I bring up a popover window with a scrollable UITableView menu, the animation freezes while scrolling is in process. Once the scrolling animation stops, the timer…
Robotbugs
  • 4,307
  • 3
  • 22
  • 30
0
votes
2 answers

Running multiple CADisplayLinks at a time ?

I'm using CADisplayLink as a timer for strobing. I have 2 CADisplayLinks: The main one (this runs during the whole thing): SMPTELink = [CADisplayLink displayLinkWithTarget:self selector:@selector(onTick)]; SMPTELink.frameInterval = 1; [SMPTELink…
objectiveccoder001
  • 2,981
  • 10
  • 48
  • 72
0
votes
1 answer

How many times a second should CADisplayLink's displayLink be called?

I have a CADisplayLink running in line with Chipmunk Physics, and I'm getting very slow performance. I put an NSLog in the method that's called on the CADisplayLink update, and it's being called an average of 22 times per second. I was under the…
Luke
  • 9,512
  • 15
  • 82
  • 146
0
votes
1 answer

iOS: How to make the CADisplayLink's event called BEFORE actual screen draw?

I'm building a cross platform UI library's iOS implementation using UIKit, one of the library's primary function is allow user to change the child control's size freely, and the parent control's size will automatically adapt. Since refresh the…
horeaper
  • 361
  • 1
  • 16
0
votes
1 answer

Upgraded my iPhone project to universal. CADisplayLink now only does 30fps

Is there any way to find out why CADisplayLink is running at 30fps, when given a "1" as its frame interval? I was running the app on an iPad mini. When ran as an iPhone app inside the iPad mini (using that mode with the 2x button thing), it ran…
kamziro
  • 7,882
  • 9
  • 55
  • 78
0
votes
1 answer

CADisplayLink not firing often enough

I am using CADisplayLink to perform synchronization between sound and animations. The synchronization needs to be really precise and currently running CADisplayLink at frameInterval of 1 does not call the selector often enough. Is there a way to…
Andrew Lauer Barinov
  • 5,694
  • 10
  • 59
  • 83
1 2 3
9
10