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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

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

Reply
 
LinkBack Thread Tools Display Modes
Old 08-10-2008, 03:12 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,556
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Thumbs down Drawing Stuff...

Hi,

I seem to have hit a sort of performance wall when drawing things with the iPhone. I have 3 Images which are being drawn. Each of those images is part of an image sequence so, everytime I redraw it gives an animation effect. What I can't figure out is why, even if I'm drawing at only 15-20 times / sec, the phone cannot keep up. All of the images have already been preloaded.

Keep in mind also, that redrawing the images is not the only thing I'm doing between updates. However, if I do not animate the images, just have a single static image that is redrawn each update, I don't seem to have much of a performance issue. However, when I start updating, a dramatic change occurs.
Why is this the case even if I've already the images?
smithdale87 is offline   Reply With Quote
Old 08-10-2008, 09:55 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,556
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default Drawing inconsistency?

I've been having major problems with drawing images after running my app on the iphone rather than the simulator.

I started logging the elapsed time it takes to re-draw my app ( its a game, so drawing is a major thing ), and I noticed something curious:

On average, it takes about 0.156s to do one redraw, but there were also many draws that were less than 0.02s ( thats right like 8-10x faster ) than average.

I'm not changing anything that I'm drawing, but for some reason, I get like 10 or so frames in a row where I get drawing times of 0.01-0.02s wherease all the reset are from 0.15 - 0.20 .

Any ideas?
smithdale87 is offline   Reply With Quote
Reply

Bookmarks

Tags
drawing, graphics, performance

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: 281
17 members and 264 guests
2WeeksToGo, ADY, dacapo, Dani77, Fritzer, ghost, HDshot, headkaze, iDifferent, mer10, mystic.purple, Rudy, smethorst, stoneage, superg, tathaastu, Zool
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,878
Threads: 89,224
Posts: 380,732
Top Poster: BrianSlick (7,129)
Welcome to our newest member, olga2000
Powered by vBadvanced CMPS v3.1.0

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