Re: Maximum image size ?
Re: Maximum image size ?
- Subject: Re: Maximum image size ?
- From: David Duncan <email@hidden>
- Date: Thu, 22 Sep 2016 09:53:00 -0700
> On Sep 22, 2016, at 6:14 AM, Gabriel Zachmann <email@hidden> wrote:
>
>
> What is the maximum size of a bitmap image I can render using the Core Graphics framework and CALayer ?
CoreGraphics is generally limited by main memory, and CALayer by GPU memory. CoreAnimation automatically tiles images that are larger than the GPU max image size.
However, you also generally don’t want to get anywhere near such limits, as performance tends to fall off a cliff before those points (due to many many implementation details and due to your own competition with the rest of the system).
If you know you will be dealing with very large images (a definition that varies from year to year mind you) you will probably want to deal with the largeness yourself, if only for initial loading performance reasons.
>
> So far, I had assumed it is the maximum texture size the graphics card can handle, so I determined the limits via
> glGetIntegerv( GL_MAX_TEXTURE_SIZE, &maxTextureSize_ );
>
> But apparently , the limits are much higher.
>
> How can I determine the limit, so that my app can filter out images over the limit, so that it does not crash in such cases?
>
> I have checked the documentation, in particular CGImageSourceCreateImageAtIndex() et al., to no avail.
>
>
>
> Best regards,
> Gabriel.
>
>
>
>
>
> _______________________________________________
>
> 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
--
David Duncan
_______________________________________________
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