Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
I'm having troubles calculating the frame rate from my app. I've used NSDate and timeIntervalSinceDate but just seem to be getting errors which seem fairly trivial, but just wont work as all the examples i've seen.
This just seems to throw errors and crash my app. I've seen these lines in many examples, but don't understand why i'm not getting any real values. The one time i did manage to get it working, the onyl value returned was 0.0.
Ideally, i want to check to see when a certain time interval has passed, most likely every 1/10th of a second, but currently, any value will do as long as i can see it working. I'd like to use this to limit my logic in my app without having to update everything as it is being rendered and also to maintain a persistent rate of performance.
Has anyone else had any trouble with this, or come across a better method of calculating the frame rate of an app? Any help would be greatly appreciated.
Replies
NSDate *startDate = [[NSDate date] retain];
I'm sure I do this and it works fine:
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeI'll give this a bash and hope for the best ;)
Cheers!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeI can crack on with the rest of my to do list now, thanks again!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome