FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Very slow with TRILINEAR and ANISOTROPIC_2X filters

3 posters

Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  dilshod Tue Mar 03, 2009 3:10 am

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.

dilshod

Posts : 7
Join date : 2008-12-28

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  sio2interactive Tue Mar 03, 2009 3:49 am

Are you using a first generation device or 2nd generation?
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  dilshod Tue Mar 03, 2009 5:05 am

I'm using first generation device.

dilshod

Posts : 7
Join date : 2008-12-28

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  sio2interactive Tue Mar 03, 2009 6:36 am

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 Wink

Cheers,
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  dilshod Tue Mar 03, 2009 6:50 am

thanks,
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

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  sio2interactive Tue Mar 03, 2009 7:09 am

exactly Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  zzajin Fri Mar 06, 2009 6:43 pm

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

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  sio2interactive Tue Mar 10, 2009 8:12 pm

added Wink

tks!
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Very slow with TRILINEAR and ANISOTROPIC_2X filters Empty Re: Very slow with TRILINEAR and ANISOTROPIC_2X filters

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum