[android-beginners] Re: Low performance using SurfaceView, touchMode and OptionMenu
Hi guys, well I FOUND the solution to the slow surfaceview issue that almost no one mentions! I know someone will appreciate this though, for me its as simple as this: remove: // int flags = WindowManager.LayoutParams.FLAG_FULLSCREEN; //getWindow().setFlags(flags, flags); Ie dont set fullscreen programatically, and adjust your AndroidManifest.xml to do it for you using: activity android:name=.AndroidGameActivity android:label=@string/app_name android:theme=@android:style/ Theme.NoTitleBar.Fullscreen And this WORKS as a fix for me, thank god for that, took me wekkksss to work that out. Good luck fellow sufferers... Gareth www.garethmurfin.co.uk freelance j2me / android / iphone developer On Jun 25, 1:46 am, Jason Van Anden jason.van.an...@gmail.com wrote: I highly recommend that you watch this: http://www.youtube.com/watch?v=U4Bk5rmIpic Jason Van Andenhttp://www.smileproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Low performance using SurfaceView, touchMode and OptionMenu
Im having the exact same issue - restarting the activity results in 60fps again but now and again pressing the menu key will result in the surfaceview running at 40fps and staying that way. It seems to be at the same time the app is struggling a little bit with doing many things as I can recreate it quite often. Any ideas?? On May 10, 4:32 am, hubert boneco...@gmail.com wrote: Hi, I'm recently working on android application and i can not deal with performance issues. My app is based on SurfaceView, I use separate thread like in lunar lander. My problems starts when i use onTouchEvent and onCreateOptionMenu. I created a test application, which does nothing other drawing FPS on canvas. It shows up to 60 fps, some times 40-50 when i don't interact in it. Another case - i start the same application, i have about 60 fps. Then I open option menu and it slow down to 40 fps, i touch the screen and another drop to about 20 fps. If i stop touch the screen fps increase to about 40 some times 50 but not to 60. Sometimesi have the case that app runs with 60 fps, i start option menu and touch the scren and I have 60 fps as on beginning. I have no ideas why is this happens. If anyone has any idea, please reply. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Low performance using SurfaceView, touchMode and OptionMenu
I highly recommend that you watch this: http://www.youtube.com/watch?v=U4Bk5rmIpic Jason Van Anden http://www.smileproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---