Best tech for iPad 1 vs iPad 2?

The performance of the iPad 2 GPU is much better than the iPad 1. I would like to switch my application and add additional nice graphics subtlety when I know that the GPU can handle it.

So, I would like to be able to significantly distinguish the differences between iPad 1 and 2 (and later), ideally using as close as possible to discovering the possibilities. There are a lot of unrelated things that I could turn on (having a camera, etc.), but ideally I would like to find something, perhaps an OpenGL function that distinguishes the GPU more directly.

This Apple page does not contain anything useful for iPad 1 vs. 2 and in this article talks about the differences in benchmarks and GPUs, but does not indicate what it looks like I can directly request (for example, the number of units of texture or what- something else).

Anyone have thoughts on how to do this, or am I missing something obvious? Thank.

+5
source share
2 answers

, , - . iPad 2 iPhone 4S 4096 x 4096, iOS - 2048 x 2048. , , iOS , , .

, OpenGL ES, :

GLint maxTextureSize; 
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);

iPhone 4 2048 maxTextureSize, iPad 2 iPhone 4S 4096.

, iPad 2, EXT_shadow_samplers ( iOS: iOS 5.0 "), iOS 5.0. iOS 4.x .

+10

GPU, .

enum GpuClass {
    kGpuA5 = 0,
    kGpuA6,
    kGpuA7,
    kGpuA8,
    kGpuUnknown,
} ;

- (enum GpuClass)reportGpuClass {

    NSString *glVersion = [NSString stringWithUTF8String:(char *)glGetString(GL_VERSION)];

    if ([glVersion containsString:@"Apple A5"] || [glVersion containsString:@"S5L8"]) {
        NSLog(@"Running on a A5 GPU");
        return kGpuA5;
    }

    if ([glVersion containsString:@"Apple A6"] || [glVersion containsString:@"IMGSGX5"]) {
        NSLog(@"Running on a A6 GPU");
        return kGpuA6;
    }

    if ([glVersion containsString:@"Apple A7"] || [glVersion containsString:@"G6430"]) {
        NSLog(@"Running on a A7 GPU");
        return kGpuA7;
    }

    if ([glVersion containsString:@"Apple A8"] || [glVersion containsString:@"GXA6850"]) {
        NSLog(@"Running on a A8 GPU");
        return kGpuA8;
    }

    return kGpuUnknown;
}

, . IMGSGX543 IMGSGX5.

+1

All Articles