• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make a solid line look like 3D
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make a solid line look like 3D


  • Subject: Re: Make a solid line look like 3D
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 26 Oct 2009 18:10:06 +0100


Le 26 oct. 2009 à 17:44, Matthias Arndt a écrit :

Hi guys,

first let me thank you for all information and suggestions you provided!

Am 26.10.2009 um 00:48 schrieb I. Savant:

That was entirely my fault, sorry. I have no idea where I got the idea it was for a screen saver. I did not follow the link. In my defense, a better description of the application's requirements would've helped in determining a course.

You're right and the first draft of my mail included much more details about the application, especially about the drawing sequence leading to this high number of NSBezierPath operations. Afterwards I though, why to bother you with embroideries, stitches etc., and I deleted the stuff and include the screenshot link instead ... No need to be sorry, but I am:


Hit me with a stick (and hit me hard)!

For some reasons I still don't understand (Argh!) the drawRect: method of my view didn't pass the right rectangle to the object actually responsible for the drawing.

What do you expect as rectangle ? drawRect: parameter is the smaller rectangle that contains all rect marked as dirty.
If you want to exact list of dirty rects, you can query it using the - getRectsBeingDrawn:count: methods.


But it has nothing to do with the visible rect.

I just fixed the code to aim for the best performance improvement: Don't draw at all (at least not hidden objects). I'm satisfied with the result as the poor performance was while zooming and scrolling zoomed areas, exactly the situations, which benefit most from drawing only in the visible part.

I do apologize wasting your time ... well, not completely, because I learned a thing or two about image caching, performance measurement, Cocoa drawing performance and I promise I will sometime get my hands on OpenGL ... maybe for a screen saver!

Thanks again, I adore this list, Matthias

-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Make a solid line look like 3D
      • From: "I. Savant" <email@hidden>
References: 
 >Make a solid line look like 3D (From: Matthias Arndt <email@hidden>)
 >Re: Make a solid line look like 3D (From: "I. Savant" <email@hidden>)
 >Re: Make a solid line look like 3D (From: Matthias Arndt <email@hidden>)
 >Re: Make a solid line look like 3D (From: Paul M <email@hidden>)
 >Re: Make a solid line look like 3D (From: Graham Cox <email@hidden>)
 >Re: Make a solid line look like 3D (From: "I. Savant" <email@hidden>)
 >Re: Make a solid line look like 3D (From: Matthias Arndt <email@hidden>)

  • Prev by Date: Re: Make a solid line look like 3D
  • Next by Date: Re: Make a solid line look like 3D
  • Previous by thread: Re: Make a solid line look like 3D
  • Next by thread: Re: Make a solid line look like 3D
  • Index(es):
    • Date
    • Thread