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 acceleration. However, the Dalvik bytecode is not hardware accelerated by a dedicated chip, but simply interpreted with the CPU.
On Tue, Mar 31, 2009 at 12:00 PM, Tseng <tseng.priv...@googlemail.com> wrote: > > 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 Open GL acceleration). From what i've read, > the reason for this is that android use it's own virtual machine to > executing the bytecode. > > However, i'm not really sure if it's true, maybe one of the Android > Engineers can confirm or deny it. With this in mind OpenGL could bring > some more performance but it doesn't have to (unlike on onther Java > phones) > > On Mar 31, 3: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 of my head, I don't know the hardware specs of the G1 but >> if it is anything like the iphones accellerator, it has plenty of >> power to make good looking smooth 2D games. >> >> On Mar 30, 12: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 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 not attempting to >> > send an MMS to the GOD DAMN myFaves service (and thus trigger GC), >> > I'll post the code. >> >> > Cheers >> >> > On Mon, Mar 30, 2009 at 11:36 AM, admin.androidsl...@googlemail.com >> >> > <admin.androidsl...@googlemail.com> wrote: >> >> > > Many of you will have read or contributed to the very long thread I >> > > started a week ago on '[android-developers] Re: Anything on Android >> > > that can do smooth scrolling?' >> >> > > That was a very useful discussion between devs and engineers on >> > > whether additional performance could be made available to fast-moving >> > > games by lowering priority or disabling other background threads. >> >> > > However, I wanted to create a separate thread to discuss what can be >> > > done TODAY in existing games to solve this problem. >> >> > > 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 be visually impressive >> > > for the platform to survive. >> >> > > Why do I think there is a solution today? Because all components using >> > > GridView and ListView in most cases feature very smooth scrolling - if >> > > you don't believe me, go to the thumbnail scrolling view in the native >> > > picture viewer. >> >> > > 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. >> >> > > Please could someone with a good low-level knowledge of the GridView >> > > and ListView API's please please please provide a very simple demo of >> > > how this smooth scrolling could be applied to scrolling an oversized >> > > image either horizontally or vertically. >> >> > > Otherwise developers are all going to try and most likely fail to >> > > figure this out themselves. Believe me I have spent many hours on this >> > > looking at Android source code, surfaceviews, onDraw, dispatchDraw, >> > > memory allocation, and nothing so far has given me anything close to >> > > smooth scrolling. >> >> > > And I also know game developers are competing with each other and want >> > > to guard their tricks of the trade. But ultimately, we are ALL >> > > competing with rival mobile platforms and unless this issue can be >> > > resolved, all android game developers will lose out. >> >> > > And the whole platform loses because there will be no quality games. >> > > Why shouldn't our games look like this after all : >> > >http://www.youtube.com/watch?v=Y4795KVt_kw- Hide quoted text - >> >> - Show quoted text - > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---