• 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: Cocoa graphics speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa graphics speed


  • Subject: Re: Cocoa graphics speed
  • From: robert l clair <email@hidden>
  • Date: Tue, 30 Sep 2003 07:33:39 -0400 (EDT)

If all you are drawing is axis-aligned rectangles, there are
a couple of outside-the-box (sorry, couldn't resist) things you
could try.

1) Try drawing them as single line segments of the appropriate
length and linewidth. It seems as if this should come down to the
same thing under the hood, but you never know and it would only take a couple
of minutes to find out.

2)(More likely) If you are only drawing in a limited number of colors
try making an NSImage for each color and then draw them by jiggering your
coordinate system and compositing the image. While it looks ugly on the face of it this kind of thing should be handled by the texture mapping/pixel operations
parts of your graphics hardware.

I'm doing graphic arts stuff so I need Quartz's more sophisticated
image model but I do all my animations and temporary tool graphics with
transparent overlay windows and blitted images. While I have made
no measurements I've been rather amazed at how well it works.


......Bob Clair


-------------------------------------------------------------
The Confusion is the gradient of the Potential for Confusion.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: how do I create a console window?
  • Next by Date: Re: Chicago Meeting Tuesday September 30th
  • Previous by thread: Re: Cocoa graphics speed
  • Next by thread: ANN: DrawBot, an environment for programming 2D graphics
  • Index(es):
    • Date
    • Thread