Author Topic: Why is my game so slow on my new Galaxy S3 ?  (Read 10399 times)

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #15 on: 2012-Nov-23 »
Have you tried profiling your game?

I can't see any info in the GLB help about profiling, can you enlighten me as to how this is implemented and what exactly it does. Thanks in advance :)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #16 on: 2012-Nov-23 »
This is very strange. JFG I'd be very interested to hear what turns up with your testing.

Also, Falstaff you mentioned those rendering errors and it looks like you have an Adreno GPU in your phone rather than the Mali-400 series (which seems to perform rather well on the S2). Does anyone have an S3 here that wasn't bought in North America? It should have a Mali GPU in that case.

Btw Crivens it seems crazy to me that sprite commands could ever be faster than the equivalent in polyvectors. I'd have to see it with my own eyes to believe it. :)

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4310
    • View Profile
    • Portfolio
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #17 on: 2012-Nov-23 »
...
Btw Crivens it seems crazy to me that sprite commands could ever be faster than the equivalent in polyvectors. I'd have to see it with my own eyes to believe it. :)

It is a lot faster on the caanoo too, not that it has anything in common with an S3.

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Why is my game so slow on my new Galaxy S3 ?
« Reply #18 on: 2012-Nov-24 »
Well it's definitely the problem on my latest XCode 4.5 project. Even a single simple gradient significantly slowed down my app on an iPod 4th gen. It's important to note my last project used these sort of effects with no issues in XCode 3.2.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4310
    • View Profile
    • Portfolio
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #19 on: 2012-Nov-24 »
...then it must be an apple feature! ;)

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Why is my game so slow on my new Galaxy S3 ?
« Reply #20 on: 2012-Nov-24 »
Heheh yeah. Seems ok on every other device. All I can think is XCode has changed things since 3.2 that significantly is slowing down my iPod touch when it comes to polyvectors. Everything else seems fine.

I just mentioned it as its a recent discovery of mine and it is worth testing both ways to make sure

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3918
    • View Profile
    • Space Fractal
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #21 on: 2012-Nov-24 »
Colored poly vectors is pretty slow. Even a single font with few triangles slowdown too much. So it's a clearly bug somewhere. But flat polygons without using the last argument is not effected.

Mightbeen we should split the thread around gradient to bug section? It's might use some wrong format?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2672
    • View Profile
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #22 on: 2012-Nov-25 »
Have you tried profiling your game?

I can't see any info in the GLB help about profiling, can you enlighten me as to how this is implemented and what exactly it does. Thanks in advance :)

"Doh!", just noticed this, sorry for the slow reply.

You probably know this well by now Spicy but just in case...

Under the "Compiler" menu, click "Profiler" then "Active".
Run your code then exit.
Got back to "Profiler" then click on "Output".
The GLB editor will then open a tab with the profile.

I seem to easily loose track of threads in the forum. :(

BTW: The purpose of the profiler is to show how fast or slow your code is, split into a per subroutine list. It's an optimisation tool.
« Last Edit: 2012-Nov-25 by bigsofty »
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #23 on: 2012-Nov-25 »
Under the "Compiler" menu, click "Profiler" then "Active".
Run your code then exit.
Got back to "Profiler" then click on "Output".
The GLB editor will then open a tab with the profile.

Thank you  :good:
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4310
    • View Profile
    • Portfolio
Re: Why is my game so slow on my new Galaxy S3 ?
« Reply #24 on: 2012-Nov-25 »
Have you tried profiling your game?

Like making backups, profiling is for cowards!     :bed:

Beta testing too!  :D

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10745
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Why is my game so slow on my new Galaxy S3 ?
« Reply #25 on: 2012-Nov-26 »
Coloured polyvector on egl is mostly very slow. I can't see a way to improve it. Try teinting the texture where possible.