• 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 different strings quickly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing many different strings quickly


  • Subject: Re: Drawing many different strings quickly
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 29 Sep 2015 23:38:23 -0700

> On Sep 28, 2015, at 6:07 PM, email@hidden wrote:
>
> If not, NSImage has a nice API for drawing to the image context. Then you just have an NSImage. Let AppKit do the work. It will cache the drawing of that image until you change it.

That would be trading CPU for RAM (worse, for GPU RAM), which comes with its own set of performance problems.

Also, last I heard, drawing text into offscreen buffers disables sub-pixel antialiasing. Not noticeable with retina displays, but not everyone has those yet.

Anyway, I still don't accept that drawing plain text in a scrolled view is too slow, unless the code is doing something wrong like trying to draw all 100k strings at once every time. I’d like to see the code behind the current implementation…

—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 different strings quickly (From: Ben <email@hidden>)
 >Re: Drawing many different strings quickly (From: Quincey Morris <email@hidden>)
 >Re: Drawing many different strings quickly (From: Ben <email@hidden>)
 >Re: Drawing many different strings quickly (From: Jens Alfke <email@hidden>)
 >Re: Drawing many different strings quickly (From: Ben <email@hidden>)
 >Re: Drawing many different strings quickly (From: email@hidden)

  • Prev by Date: Re: questions on WebView for Mac apps
  • Next by Date: Re: NSColorPanel and close box
  • Previous by thread: Re: Drawing many different strings quickly
  • Next by thread: Re: Drawing many different strings quickly
  • Index(es):
    • Date
    • Thread