Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2011, 09:56 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 55
themaster is on a distinguished road
Default game loop HELP PLEASE

hey everyone
here is a scenario
you have a game loop controlling 1 sprite at a time flying in the air
the problem is when touch input occurs the flying sprite seems to lag a little bit
i ve tried to slow down all possible calculations needed and not needed still the same i brought the rate to 1/10 and still lagging i ran out of ideas
any HELP PLEASE.
themaster is offline   Reply With Quote
Old 02-07-2011, 11:09 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: South Florida, US
Posts: 357
lgehrig1 is on a distinguished road
Default

Quote:
Originally Posted by themaster View Post
hey everyone
here is a scenario
you have a game loop controlling 1 sprite at a time flying in the air
the problem is when touch input occurs the flying sprite seems to lag a little bit
i ve tried to slow down all possible calculations needed and not needed still the same i brought the rate to 1/10 and still lagging i ran out of ideas
any HELP PLEASE.
Do your updates based on the delta of time from the last update, and not just on "next frame please".

In other words, if it has been two seconds since your last update, run your updates for two secs worth of activity. Never assume you are going to get a particular frame rate - the hardware will f you up every time.
lgehrig1 is offline   Reply With Quote
Reply

Bookmarks

Tags
game, loop, thread, timer

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 421
9 members and 412 guests
7twenty7, chemistry, ChrisYates, hussain1982, Retouchable, skrew88, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:10 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0