• 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: Drawing many thin vertical lines is very slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing many thin vertical lines is very slow


  • Subject: Re: Drawing many thin vertical lines is very slow
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 07 May 2015 22:31:38 -0700

> On May 7, 2015, at 9:43 PM, Michael David Crawford <email@hidden> wrote:
>
> Another way would be for me to render the entire view in an offscreen
> image buffer, which I expect I could do far more efficiently than by
> making many calls into UIRectFill or even CoreGraphics.

Actually, no. Rendering in software is much, much slower than letting the GPU do it. Partly because the CPU isn’t as optimized for it as the GPU, and partly because software has to render into general-purpose RAM, and then afterwards that entire pixmap has to be copied into VRAM where the GPU can access it to composite it to the screen.

As I said, any intuition about drawing performance that’s based on 1990s-or-earlier systems is useless nowadays, because the graphics architecture (hardware and software) is so different.

—Jens
_______________________________________________

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


References: 
 >Drawing many thin vertical lines is very slow (From: Michael David Crawford <email@hidden>)

  • Prev by Date: Re: Drawing many thin vertical lines is very slow
  • Next by Date: RE: Does the NSView Drag Protocol has any issues with non-key windows?
  • Previous by thread: Re: Drawing many thin vertical lines is very slow
  • Next by thread: Re: Where and how do I know a save completed successfully?
  • Index(es):
    • Date
    • Thread