Very slow with TRILINEAR and ANISOTROPIC_2X filters
3 posters
Very slow with TRILINEAR and ANISOTROPIC_2X filters
In sio2 default settings for filters are (sio2Init)
sio2->tfilter =SIO2_IMAGE_TRILINEAR;
sio2->afilter = SIO2_IMAGE_ANISOTROPIC_2X;
it's very slow for me
sio2->tfilter = SIO2_IMAGE_LINEAR; //SIO2_IMAGE_TRILINEAR;
sio2->afilter = SIO2_IMAGE_ISOTROPIC; //SIO2_IMAGE_ANISOTROPIC_2X;
I added this lines after sio2Init, and now it's ok.
sio2->tfilter =SIO2_IMAGE_TRILINEAR;
sio2->afilter = SIO2_IMAGE_ANISOTROPIC_2X;
it's very slow for me
sio2->tfilter = SIO2_IMAGE_LINEAR; //SIO2_IMAGE_TRILINEAR;
sio2->afilter = SIO2_IMAGE_ISOTROPIC; //SIO2_IMAGE_ANISOTROPIC_2X;
I added this lines after sio2Init, and now it's ok.
dilshod- Posts : 7
Join date : 2008-12-28
Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters
Are you using a first generation device or 2nd generation?
Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters
I'm using first generation device.
dilshod- Posts : 7
Join date : 2008-12-28
Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters
Anisotropic 2X is not supported on first generation, the reason why its slow its probably because you fallback on software rendering... or got a s!@t load of GL_ERROR on the console
Cheers,
Cheers,
Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters
thanks,
i can add some code for testing iphone hardware version, and turn off filters if it's running on first generation iphone.
i can add some code for testing iphone hardware version, and turn off filters if it's running on first generation iphone.
dilshod- Posts : 7
Join date : 2008-12-28
Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters
If anyone is looking for how to do this, I found this at ArsTechnica.
- Code:
/*
Platforms
iPhone1,1 -> iPhone 1G
iPhone1,2 -> iPhone 3G
iPod1,1 -> iPod touch 1G
iPod2,1 -> iPod touch 2G
*/
size_t size;
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
char *machine = malloc(size);
sysctlbyname("hw.machine", machine, &size, NULL, 0);
NSString *platform = [NSString stringWithCString:machine];
NSLog( @"platform %@\n\n", platform);
free(machine);
zzajin- Posts : 81
Join date : 2008-10-14
Permissions in this forum:
You cannot reply to topics in this forum
|
|