[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-31 Thread Agus
To Quartz: How do you prevent triggering of the GC? On Mon, Mar 30, 2009 at 7:33 PM, Quartz william.qua...@gmail.com wrote: I did an android game using just the SurfaceView and it performs fairly decent (it averages 50-to-60 fps). It was a simple game I put together to benchmark the VM. It

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-31 Thread Stoyan Damov
He's probably talking about not doing allocations in his game. He can't stop GC from being triggered in other processes, and thus stuttering his game. On Tue, Mar 31, 2009 at 10:35 AM, Agus agus.sant...@gmail.com wrote: To Quartz: How do you prevent triggering of the GC? On Mon, Mar 30, 2009

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-31 Thread Romain Guy
Hi, You are mistaking two different things. Some Java ME phones have a dedicated chip used to interpret the Java bytecode. OpenGL acceleration is another thing entirely. The G1 has a dedicated GPU that can be used to accelerate OpenGL. Any Android OpenGL application benefits from that hardware

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-31 Thread Tseng
From what i know, most of the Java/J2ME phones use the chipsets acceleration functions (some mobilephone CPUs are optimized for java accerlration in 2d/3d games). But since Android is not based on Java/ J2ME, it doesn't support this acceleration (even though the CPU used in the G1 supports Java

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Dianne Hackborn
There is no magic in GridView and ListView. In fact there is really anti-magic -- these are not designed in any way to operate like one would do things in a game. The only thing they do at all special is take advantage of tricky features of the view hierarchy to be able to scroll their views

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread David Turner
On Mon, Mar 30, 2009 at 10:36 AM, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: Why is it a problem? Because there is not a single game in Android Market that features smooth scrolling backgrounds. Games may not be the only app needed, but they certainly need to

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread admin.androidsl...@googlemail.com
Thanks for the response. Side scrolling is a very commonly used game engine and I believe that the platform needs better examples of this. Obviously other graphic engines are needed too, e.g. OpenGL - but I think getting good performance out of 2d graphics will be a very good start for many

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Sundog
On Mar 30, 4:10 am, David Turner di...@android.com wrote: On Mon, Mar 30, 2009 at 10:36 AM, admin.androidsl...@googlemail.com Also, Android is not a game console per se, and survival of the platform will depend much more on the usefulness of the applications that run on it, the

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Romain Guy
So what I am saying is there is some magic in the GridView / ListView code which allows for smooth scrolling which games on Android platform desperately need. Despite going through the source code extensively I cannot discover what is needed to apply this to a game engine. GridView and

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Marco Nelissen
On Mon, Mar 30, 2009 at 2:14 AM, admin.androidsl...@googlemail.com admin.androidsl...@googlemail.com wrote: Thanks for the response. Side scrolling is a very commonly used game engine and I believe that the platform needs better examples of this. Obviously other graphic engines are needed

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Sundog
I find this more depressing than otherwise. So whoever wrote those views wasn't happy with the system's response either and had to optimize. Doesn't bode well for the side-scrollers. On Mar 30, 10:07 am, Romain Guy romain...@google.com wrote: GridView and ListView don't use any magic. They

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Marco Nelissen
Unless you're trying to build your side-scroller using multiple nested layouts and dozens of textviews, it's completely irrelevant. On Mon, Mar 30, 2009 at 9:45 AM, Sundog sunns...@gmail.com wrote: I find this more depressing than otherwise. So whoever wrote those views wasn't happy with the

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Romain Guy
I wrote a large part of those views and it seems perfectly normal to me for the framework to do everything it can to provide with the best user experience. And that includes optimizing. Using bitmaps not only makes things faster it also helps performing less operations, which helps battery life

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Stoyan Damov
I will try to code a demo which does side scrolling tonight, but I don't know opengl, so I won't use it. My phone is getting worse every day (I haven't used it as phone as a matter of fact for a while) but in case it does manage to show smooth scrolling, in the 5 seconds idle period, when it's

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread admin.androidsl...@googlemail.com
Thanks Stoyan - I look forward to trying out your code. Very much appreciated. On Mar 30, 8:30 pm, Stoyan Damov stoyan.da...@gmail.com wrote: I will try to code a demo which does side scrolling tonight, but I don't know opengl, so I won't use it. My phone is getting worse every day (I

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread dm1973
I think you should learn OpenGl (even for 2D games). I haven't tried it on Android yet but I image you can get much better results by doing your animation using it than by doing drawing using the android APIs. Off the top of my head, I don't know the hardware specs of the G1 but if it is anything

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Stoyan Damov
On Tue, Mar 31, 2009 at 4:29 AM, dm1973 david050...@gmail.com wrote: I think you should learn OpenGl (even for 2D games). I haven't tried it on Android yet but I image you can get much better results by doing your animation using it than by doing drawing using the android APIs. Off the top

[android-developers] Re: Android game developers desperately need optimised game engine example code ...

2009-03-30 Thread Quartz
I did an android game using just the SurfaceView and it performs fairly decent (it averages 50-to-60 fps). It was a simple game I put together to benchmark the VM. It is certainly not the best rated game out there--actually it is one of the worst come to think of it-- :), but it does have smooth