# Revision history [back]

### Image and texture size limit

Different hardware has different limits for the size of images and textures.

So I have two questions regarding the texture size limit in Sailfish OS:

1. What are the texture size limits for the currently available devices?
2. Is there a Qt or Sailfish OS function to dynamically determine the image size (and/or dimensions) limit of the current device the app is running on? And is this way of determination compatible with Jolla Harbour?
• If there is no such way: Do I need to hardcode the size limits for all devices? And if yes: How to determine the current device type (on a Harbour compatible way)?

### Image and texture size limit

Different Since different hardware has different limits for the size of images and textures I am looking for a method to determine this limits. With 'texture size limit' I mean the actually supported dimensions an image/texture can have so that the device's hardware (GPU) and software is able to render it.

So for example some devices are supporting 1024x1024 textures and other support 4096x4096 textures.

So I have two questions regarding the texture size limit in Sailfish OS:

1. What are the texture size limits for the currently available devices?
2. Is there a Qt or Sailfish OS function to dynamically determine the image size (and/or dimensions) limit of the current device the app is running on? And is this way of determination compatible with Jolla Harbour?
• If there is no such way: Do I need to hardcode the size limits for all devices? And if yes: How to determine the current device type (on a Harbour compatible way)?