Android :: Frame Rate Drops In Landscape Mode

May 24, 2010

I am trying out the (latest) Android SDK, and noticed some strange behavior.I've written a skeletal SurfaceView app: Activity, SurfaceView and a rendering thread. It doesn't actually do any painting, and only writes out the framerate to logcat once a second. When it runs in portrait mode, I get around 60 fps. However, when I flip it to landscape the framerate drops to about 30 fps.

I have also tested it on the LunarLender sample, and got similiar results. All of the testing are done on the emulator, since I don't have a physical device.What's it all about? I can't seem to find any mentioning to this on Google, have anyone else experienced that? Is it just an emulator quirk or does it apply to physical hardware too?

Android :: Frame rate drops in landscape mode


Android :: App That Provides Playback Of Video At A Frame By Frame Rate?

Dec 18, 2009

I would prefer to not have to purchase a Flip Video Recorder to provide me the frame by frame playback needed (coaching girls softball) for instant instruction at practice. Is there an app that provides playback of video at a frame by frame rate?

View 1 Replies View Related

Android :: Increasing Frame Rate

Feb 15, 2010

Anyone knows how to increase the fps in android?? I am developing a 2D game using rokon engine but i am getting only 7-8 fps. How can i increase the frame rate, is there any method to set the fps ....

View 3 Replies View Related

Android :: Fastest 2D Frame Rate Possible With NDK?

May 20, 2010

Fastest 2D frame rate possible with android NDK, my try included, better options available?

I used the NDK and OpenGL ES 2.0 to display a frame as a texture on a GL_TRIANGLE_STRIP. This was done on a HTC Desire, same hardware as Nexus One. I tried to load multiple GL_RGBA textures and switch between the textures, because the normal fill rate with a single texture was disappointingly low:

CODE:.........................

I think even 30.32 fps RGBA is still too slow.

So is this the way to go to achieve the fastest 2D frame rate (with same quality)?
Any suggestions to speed it up?

Here is the relevant code, it is based on the hello-gl2 NDK example:

CODE:........................

View 1 Replies View Related

Android :: Emulator Performance - Frame Rate Is Really Low

Aug 23, 2010

So I developed a small 3d game on Android 1.6 with JPCT, the free 3d game engine Android version. It seems the frame rate is really low on emulator(5 frames per second).... Did I miss something to speed up the emulator or it is normal, I should test the game with real device?

View 3 Replies View Related

HTC EVO 4G :: Has Frame Rate Cap Ever Been Broken Before?

Jun 27, 2010

I am a n00b to all things android. But I'm up to speed on rooting. What I am not up to speed on is the frame rate.I want to keep this phone so bad because I love it. But you know what the one thing the iPhone has over us? Smooth transitions and stuff. I know that has to do with fps.I figure if it has been done before it can be done again. Has fps ever been lifted before? Or are we spitting in one hand and wishing in another?

View 4 Replies View Related

Android :: HTC Specific Open GLES 1 Frame Rate / Can't Get It Right

Sep 14, 2010

I am trying to get a quite simple openGL ES 1 program run a smooth solid 60fps on a couple devices out there, and I get stuck on HTC desire. The phone itself is quick, snappy, powerful, and overall a breeze to use ; however, I can't seem to display anything fullscreen at 60fps with OpenGL. After getting stuck for a long time with my app, I decided to make a test app with code right out the sample code from the documentation.Here is what I am doing. Simple initialization code with GLSurfaceView. I have three versions of onDrawFrame, all dead simple. One is empty. One contains only glClear. One contains just enough state to only draw a fullscreen quad. Trace times before, and after. There is no view other than my GLSurfaceView in my program. I can't explain the times I get.In all cases, the onDrawFrame function itself always finishes under 2ms. But very often, onDrawFrame does not get called again before 30~40ms, dropping my frame rate all the way to 30fps or less. I get around 50fps with an empty onDrawFrame, 45 with glClear and 35 with a quad.
The same code runs at 60 fps on the HTC Magic, on the Samsung Galaxy S, on the Sharp ISO1. Sony Experia X10 caps at a solid 30fps because of its screen. I have been doing much more complicated scenes at a solid 60fps on the HTC Magic which is very underpowered compared to the Desire. I don't have a Nexus One in handy to test. Sure, I except buffer swapping to block for a couple milliseconds. But it just jumps over frames all the time.

Trying to find out what the phone is doing outside of the onDrawFrame handler, I tried to use Debug.startMethodTracing. There is no way I can get the trace to reflect the actual time the phone spends out of the loop. At the end of onDrawFrame, I use startMethodTracing then save the current time (SystemClock.uptimeMillis) in a variable. At the start of the next one I Log.e the time difference since the function last exited, and stopMethodTracing. This will get called over and over so I arrange for stopping once I get a trace for an iteration with a 40+ ms pause. The time scale on the resulting trace is under 2ms time, as if the system was spending 38ms outside of my program, I tried a lot of things. Enumerating EGL configs and try them all one after the other. Just to see if it changed anything, I switched to a render when dirty scheme requesting a redraw at each frame. To no avail. Whatever I do, the expected gap of 14~16ms to swap buffers will take 30+ms around half the time, and no matter what I do it seems like the device is waiting for two screen refreshes. ps on the device shows my application at around 10% cPU, and System_server at 35%. Of course I also tried the obvious, killing other processes, rebooting the device... I always get the same exact result.

View 2 Replies View Related

Android :: Opengl - Unable To Get Steady Frame Rate Due To GC

Jan 29, 2009

I've been playing with OpenGL but am unable to get a steady framerate due to GC. When rendering 100 tiles each frame (in ortho mode), the GC needs to recover ~22000 objects every 3 seconds or so. Each collection is taking around 110 ms. Of course this means quite a framerate dip.

... D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 113ms D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 113ms D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 113ms D/dalvikvm( 9837): GC freed 21841 objects / 524272 bytes in 114ms ...

The rendering loop I tested with is not making any objects and is very simple;

while (super.running) { gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glBindTexture(GL10.GL_TEXTURE_2D, tex); for(x = 0 ; x < 100; x++) { gl.glVertexPointer(2, GL10.GL_FIXED, 0, tileCoords[x]); gl.glTexCoordPointer(2, GL10.GL_FIXED, 0, tileTexCoords[x]); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); } egl.eglSwapBuffers(dpy, surface);

View 4 Replies View Related

Android :: Application For Camera Use - Slow Frame Rate Video

Nov 24, 2010

I wanted to write an application that makes use of the camera taking extremely slow frame-rate video and uploading it. Right now I am reading over this:
http://itp.nyu.edu/~sve204/mobilemedia_spring10/androidCamera101.pdf

My question was in regards to the camera's use. The above article makes use of a canvas to preview the image, if one didn't want to preview the image before taking it could that be done? Is it necessary to use a preview of the camera image or can I just call takepicture to take the picture and catch the resulting callback to save it to a file?

View 3 Replies View Related

Sprint HTC Hero :: Need Best Settings For NES/SNES Emulators - Frame Rate?

Mar 12, 2010

Anybody know the best settings for the NES/SNES emulators-frame rate, etc to get rid of lag? The first time I used it it was lag free, now I'm getting a little jumpy frames and stuff....(i bought the full versions of both).

I have a sprint htc hero rooted w/ fresh 1.1 and gumbo + set CPU!

View 3 Replies View Related

General :: Change Frame Rate Of Application Or Game To Be Slower

Dec 6, 2012

Is there any way to change the frame rate of a application or game to be slower, some thing like freeze banana in fruit ninja.

I had some app in windows that did it with changing the clock slower for example one second in computer was 1.5 or 2 seconds long.

In android 4.0.x in developer optioons there is this thing for animations only.

GT-I9100

View 1 Replies View Related

Android :: Landscape Picture Frame Widget?

Jun 9, 2010

I am trying to add a picture frame to my home screen and I have taken a landscape image... it seems that I can only add portrait images.

Does anyone know how I can add a landscape image for as "Free" as possible... If not free, what would be the best market download?

View 1 Replies View Related

General :: Video Recording Tin Portrait Mode Records In Rotated Landscape Mode?

Mar 26, 2012

there are those of us, who due to whatever reason (helmet cams, preference for posture, etc) want to record videos in portrait mode.

What happens (on my sgs2) is that the video records just fine in whatever resolution I pick... but it records it 90 degrees rotated to the right.

The solution that is usually offered is that "you can rotate it after!" yes... but then you have to CROP part of the image and lower the resolution. 1920 x 1080 recordings end up having to be cropped so that half of the view is cut out , or even more if you are maintaining a real aspect ratio.

The questions about "why not just hold it sideways", are just as pointless as the statement by steve jobs telling iphone4 users that they were holding their phones wrong.

is this something that can be remedied ? or has google decided that people should only record videos when their phones are in landscape mode?

i understand that we cant see landscape resolution in portrait mode; but can't we just have a viewport into the camera, but record in properly oriented landscape mode? so that playback on a computer will show the full resolution, even though we will only see part of it on the phone..

View 1 Replies View Related

General :: Dialer In Kitkat Always In Landscape Mode When Call Is Ongoing - How To Set It In Portrait Mode

Dec 1, 2013

dialer in kitkat is always in landscape mode when call is ongoing....how can we set it in portrait mode

View 1 Replies View Related

Android :: Loading And Showing A Lot Of Images In ImageView - Frame By Frame Animation - Hangs In Certain Moments

Feb 18, 2010

I've created an application that show around 250 images in ImageView. Images are loaded one after another, 15-30 images per second. Basically the whole thing gives an illusion of a rotating 3D object, at least it should.

The problem is next, app hangs when loading certain images(i.e. I see a few seconds of fluid animation and then animation hangs, jump 10-15 frames(images) ahead and continues. It always happens at the same places in animation cycle.

I though that Android might not have enough resources to handle something like this, so I've resized images to half their size, but it did't help. I've tried buffering images but that did't help either(actually, maybe a little, I think that animation looks a little bit smoother).

And now the weirdest thing. I use the touch screen to allow users to "rotate" the 3D object on those images, and while rotating I again experience those hangs at exactly the same places as with the animation.

All images are in .png format and their size vary from 15kB to 40kB.

I use the following code for the animation:

CODE:.....................

View 1 Replies View Related

Android :: How To Avoid Camera Landscape Mode?

Nov 24, 2010

I am New To android, my problem is when iam capturing image programetically the camera is opening in landscape mode..Than How to Avoid it?

View 1 Replies View Related

Android :: How To Solve Landscape Mode Issue?

Feb 10, 2009

I have a small application. It has some user inputs (like name, phone number, country, connection type etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do?

View 7 Replies View Related

Android :: Portrait / Landscape Mode Supporting

Mar 31, 2009

When we try to implement orientation in AP layer, we can set "android:screenOrientation" parameter in AndroidManifest.xml file or call "setRequestOrientation()" method of Activity class. But if I want to porting android in new HW device, how can I do? Do I need to modify the graphic driver, or just add configuration in program. (Actually I do some experiments but my AP cannot rotate) Besides, can every experts tell me when I set the "android:screenOrientation" parameter, which process will read this configuration, pass to where and which process will do the rotation?

View 2 Replies View Related

Android :: Landscape Mode When Boot On Device

Mar 24, 2009

There are some question bother me.

How to fix landscape mode when boot on device?

I had change manifest.xml ->

CODE:...........

But that only change sensorDemo screen. That doesn't I want. I want to set landscape mode when boot on device and show main screen. what methods does I try it?

View 3 Replies View Related

Android :: Softkeyboard Visible In Landscape Mode?

Jan 15, 2010

I wanted a way to find out whether a softkeyboard is visible at any given time.

If I set the windowSoftInputMode property to adjustResize, I receive resize events in the portrait mode (onSizeChanged gets called). I use these events to find out whether the softkeyboard is visible or not. But I get no resize events in the landscape mode (Android SDK 2.0). Do I need to set some property explicitly to get these events in the landscape mode.

Also when the application switches between landscape and portrait, the application gets resize events. So to find out whether the keyboard is actually visible, I would need to differentiate between the 2 resize events.

So in short, is there a cleaner way (other than resize events) to find out whether the soft keyboard is visible? And if resize is the only way, how can I turn it on for landscape mode?

View 2 Replies View Related

Android :: App Crashes When Switching To Landscape Mode / Why Is So?

Jun 17, 2009

My application crashes when I switch the Android Emulator to landscape mode. But when I start the application, everything works fine, until I switch to portrait mode again.

The error only occurs when I switch from one mode to another. When I debug my app while switching to the other mode everything works fine until my program counter jumps out of the onCreate() function.

this is an error message i picked out: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.prog.drink/com.prog.drink.App}: java.lang.IllegalArgumentException: Wrong state class -- expecting View State

Any idea what I could have done wrong in my app?

View 5 Replies View Related

Android :: Virtual Keypad In Landscape Mode?

Dec 22, 2009

I am working currently on an application which is in landscape mode by default. I want the virtual kepad to be poped up whenever I click on the edit box. Please, help me for the same.

View 3 Replies View Related

Android : Switching To Landscape Mode In Emulator

Apr 11, 2010

This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google.I set the orientation of my Android app to landscape in the AndroidManifest.xml file: android:screenOrientation="landscape"

However, when I run the app in the simulator, it appears sideways and in portrait mode. How can I switch the emulator to landscape mode on a mac? It's running the 1.6 SDK.

View 3 Replies View Related

Android :: How To Show Soft Keyboard In Landscape Mode?

May 5, 2009

I tried a lot of ways with no luck.

View 2 Replies View Related

Android :: Put TextView In Same Position In Landscape / Portrait Mode

Oct 1, 2009

I am facing a problem when i put a text view on screen in landscape mode it position is fine but when i switch to portrait mode it position is remain fix it not change according to screen resolution.

View 2 Replies View Related

Android :: Disable Landscape Mode For Some Of Views In Droid App?

Feb 24, 2009

How can I disable landscape mode for some of the views in my Android app?

View 3 Replies View Related

Android :: Code To Change LandScape To Potrait Mode?

May 15, 2010

I have a an application which is having some UI items like Buttons Radio Buttons etc. I want to change through code from landscape to portrait mode. I did by calling the method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); But my UI items totally disturbed some of the i am unable to see.

View 3 Replies View Related

Android :: How To Get TableLayout To Fill Parent In Landscape Mode

Dec 27, 2009

I am using a TableLayout in my application. It contains four TableRows each containing four ImageViews. The behavior I want is to scale the layout to fit the shortest dimension. It works fine in portrait mode but fails miserably in landscape mode.

From the documentation it looks like this is because the TableRow layout_height is always set to WRAP_CONTENT. While I can set the dimensions of the individual Views, the TableLayout won't render at all if I set the View layout_height to FILL_PARENT.

I feel like there is something simple I am missing. Is there a way to get the TableLayout with TableRows to scale to fit the height in landscape mode?

XML Layout:

CODE:...................

Java:

CODE:......................

View 2 Replies View Related

Android : Want Vertical Tab To Realign Vertically In Landscape Mode

Jul 25, 2009

I tried to search discussions and couldn't find definite answer or example in old thread. I want my tabs to realign vertically in the landscape mode. Currently I have to use buttons which is sorta silly when there is a tab control..

View 2 Replies View Related

Android : Trying To Make Nice Layouts For Landscape Mode?

Nov 10, 2010

My app has a tabhost with four tabs, and now I'm trying to make nice layouts for landscape mode. In order to make use of additional horizontal space I want to put TabWidget at the right side of the screen, and of cource all tabs must be one under another (like in a column).
But when switching to landscape mode all tabs get aligned in a row, it looks quite ugly. How to fix that?
Screenshot is here: http://imgur.com/gPS1R.png

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout

android:layout_width="fill_parent"
android:layout_height="fill_parent">

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1">

<include layout="@layout/filter_wizard"/>
<include layout="@layout/filter_wizard"/>
<include layout="@layout/filter_wizard"/>
<include layout="@layout/filter_wizard"/>

</FrameLayout>

<TabWidget
android:background="#75ffffff"
android:id="@android:id/tabs"
android:layout_width="wrap_content" android:orientation="vertical"
</LinearLayout>
</TabHost>

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved