Author Topic: Iphone 2G?  (Read 1427 times)

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Iphone 2G?
« on: 2010-Jul-21 »
Hi guys,
my question is if the Iphone 2G is good enough for glbasic, because its much cheaper then the 3G or 3Gs.
But I readed that it doesn´t suppoert the latest iOS´s!?!
Can I use each function of GLBasic on the 2G?

greets
backslider

Offline Ozden79

  • Mr. Polyvector
  • ***
  • Posts: 121
    • View Profile
Re: Iphone 2G?
« Reply #1 on: 2010-Jul-21 »
We have games developed using GLBasic and used 1st generation IPod Touch to test them. I'm not %100 sure but IPhone 2G and 1st generation IPod Touch probably have near the same capabilities. 

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10665
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Iphone 2G?
« Reply #2 on: 2010-Jul-21 »
I have a 1st gen iPod for developing, because if it runs there, it's fast enough for the others. 2G is really cheap now. About 160,- EUR?

Offline backslider

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 892
    • View Profile
Re: Iphone 2G?
« Reply #3 on: 2010-Jul-21 »
Yes, i found one on Amazon.de for 170,- but in a few minutes it´s sold :)

*done*
« Last Edit: 2010-Jul-21 by backslider »

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: Iphone 2G?
« Reply #4 on: 2010-Jul-23 »
backslider, it all depends on what you want to do. Don't even think about drawing sprites as polys if you want full 60 FPS but other things are very fast.

I've attached a little proggy that I used to test what my 3rd generation iPod Touch was capable of in terms of alpha blended, rotated and zoomed DRAWSPRITE calls. What it does is draws successive 160 x 120 sprites on the screen while rotating them and zooming them slightly. If the frame rate drops below 60 fps it won't increase the sprites, therefore the maximum number of sprites it reaches is just one more than it can cope with.

On my new iPod Touch (600Mhz CPU, PowerVR SGX GPU) it manages to get 85-86 sprites without running into problems. Adjusting for clipping (some parts of the sprites won't be displayed) That means it can cover the entire screen approximately 10 times over with successive sprites.

If you, or anyone curious about this, could compile the app to your device and let it run until it reaches its FPS ceiling it would be interesting to see how many sprites it reaches before stopping. I'm guessing an iPhone 3 with OS 2 will reach about 30-32 sprites.

[attachment deleted by admin]