Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: performance issues



 
I wish I were drawing an image.
 
 
W.

-----Original Message-----
From: Jan E. Schotsman [mailto:email@hidden]
Sent: Wednesday, March 30, 2005 7:18 AM
To: email@hidden
Cc: Edwards, Waverly
Subject: Re: performance issues



On 30-mrt-05, at 1:46, Edwards, Waverly wrote

OK, here is the BIG kicker, step 4 (first list). The entire process including displaying
the data in quartz takes 88 minutes. It *is* scaled to fit on the screen and yes
it is a stress test however I can not escape the fact that drawing is much too
slow in quartz. The drawing portion little more than:


loop
// get next batch of cgPointArray and add them to path
cgcontextbeginpath( ctx )
cgcontextaddlines( ctx, cgPointArray, numLines )
cgcontextstrokepath( ctx )
endLoop

:

This reminds me of people complaining SetCPixel is so slow.
Are you drawing an image? I f you create a CGImage you can write data to its backbuffer and use CGContextDrawImage to display the image.

Jan.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.