Android :: Floating Fixed Point For NDK OpenGL Apps?
Aug 2, 2010
I'm trying to decide on whether to primarily use floats or ints for all 3D-related elements in my app (which is C++ for the most part). I understand that most ARM-based devices have no hardware floating point support, so I figure that any heavy lifting with floats would be noticeably slower. However, I'm planning to prep all data for the most part (i.e. have vertex buffers where applicable and transform using matrices that don't change a lot), so I'm just stuffing data down OpenGL's throat. Can I assume that this goes more or less straight to the GPU and will as such be reasonably fast? (Btw, the minimum requirement is OpenGL ES 2.0, so that presumably excludes older 1.x-based phones.)Also - how is the penalty when I mix and match ints and floats? Assuming that all my geometry is just pre-built float buffers, but I use ints for matrices since those do require expensive operations like matrix multiplications, how much wrath will I incur here. By the way, I know that I should keep my expectations low (sounds like even asking for floats on the CPU is asking for too much), but is there anything remotely like 128-bit VMX registers?
View 2 Replies
Oct 13, 2009
I've started developing an OpenGL ES app and I would like to get the best possible performace (as everybody, I guess).
As far as I know, HTC Magic (myTouch, G2) doesn't have floating point unit, so I think every calculation is done internally with fixed point math. That beign the case, altough I fed OpenGL with floating point vertex positions and normals, there would not be any permormace penalty since it would be using integer math instead of floating point emulation.
View 2 Replies
View Related
Jan 6, 2010
OpenGL ES allows values to be specified in either fixed point or floating point format, but I haven't been able to find any information about how this is actually implemented on Android devices. Are there actually two different pipelines, one for fixed point and one for floating point? If so, what happens if you mix and match them, such as specifying your matrix in floating point but your vertices in fixed point? Alternatively, does it implement everything with just one format internally, and convert the other format to it as necessary? If so, then you presumably get the best performance if you always specify values in the internal format so as to avoid conversions. How then can I determine which format is used internally?
View 9 Replies
View Related
Jun 9, 2010
I've begun playing with the android NDK. One of the things I've just learnt is about creating an application.mk file to specify the armv7 abi. I'm building the san-Angeles example with the following parameters. Code...
View 1 Replies
View Related
May 17, 2009
I have been searching about the floating point support on G1 phone (aka the HTC Dream phone) for a few hours.
So far, my conclusion is that the ARM-based Qualcomm MSM7201 CPU does not have VFP (floating point coprocessor) and therefore floating point calculations have to be done via software-float.
This is quite disappointing as I am interested in developing applications with heavy math.
However, I also notice that the Qualcomm CPU has QDSP4000™ and QDSP5000™ high-performance digital signal processors (DSP), according to http://www.qctconnect.com/products/msm_7201.html
Therefore, here is my question: would it be possible to leverage the DSP modules in the MSM7201 CPU to do the floating point math?
Also, I would like to develop the heavy-math modules in C/C++ and call it via JNI, and so I just want to double-check whether this is a feasible approach.
View 13 Replies
View Related
Feb 22, 2010
I'm currently developing a application on a HTC Dream aka T-mobile G1. afaik the processor has a FPU coprocessor, called VFP (Vector Floating Point) in ARM terms. So far I couldn't find any information about if the FPU is used for floating point calculations or if those are emulated in software. does anyone have any information about that? the opengl implementation supports both fixed point and floating point. will my applications be slower when I'm using floating point, because they get transformed into fixed point internally? or is floating point implemented in hardware?
View 5 Replies
View Related
Jul 19, 2010
I'm trying to add a little space between lines to my Text Views using android:lineSpacingMultiplier
from the documentation: Code...
View 1 Replies
View Related
Jan 12, 2010
I need maths for my game physics and lots of them, so I use the. Math library. And guess what? I never casted so much to floats in my entire life. And i know how costly it is to use doubles on an embedded device because I read the performance optimization page in the google android sdk docs. So I am wondering if we couldn't get a Math package with functions taking and returning floats instead of the default doubles. e.g. Math.sinf Math.cosf.
View 3 Replies
View Related
Oct 20, 2009
Is there a way to determine if the system supports floating point? That way, I could choose between two algorithms to use.
View 4 Replies
View Related
Jan 17, 2010
I love Android, coming over from the Iphone i have Tmobile Pulse!
I love how Android had "Floating Apps" Apps which run on there own in the background, like facebook?
Is there anymore apps like this, which can do the same, a Gmail one would be awesome or news feed (RSS)
Also on my Android i have a big cluttered messy list off apps on one page, looks like this, comes with some games i don't want. How can i get rid of them ?
View 3 Replies
View Related
Sep 29, 2010
What's the point over uninstalling apps if you don't benefit the space they occupied?
View 15 Replies
View Related
Feb 25, 2009
Single Threaded OpenGL game ! (check bottom, you can download and use the helper class) Lighting disabled ! Depth Buffer disabled ! Culling enabled ! Textures disabled !
Just 176 integers (x,y values only) making 88 vertexes along with 132 index numbers making "44 triangles only"
Framerates I get is
with GL_BLENDING disabled - 145 fps approx only! enabled - 110 fps approx only!
I have the screenshot of exact code in the draw function here.. just 2 damn lines ! I have hidden only the comments.. click here to see it http://prasna991.googlepages.com/drawframe.png
variable details in the 2 lines of code =========================== ipts = 176 elements (only x and y for each vertex) totallinetriangles * 3 = 176 lineindexes = 132 elements - type "short"
Here is the screenshot of output drawing and how it will look like http://prasna991.googlepages.com/screen.png
OpenGL single threaded Initialization Helper ================================ Here is my OpenGL helper class.. makes the OpenGL initialization for newbies a cakewalk http://prasna991.googlepages.com/OpenGLHelperclass.txt
I tested by rendering on the touch event only.. frame rate drops only when u touch and drag and here I have just tested by tapping and releasing gently on the emulator and on the device
Is this the device limitations ? So graphics is actually a lot lot lot slower than on iPhone ?
View 8 Replies
View Related
Jul 24, 2010
I would like to be able to use the OpenGL API from both Java and C (via NDK).
In Java, there is a GL object passed, which has all GL methods on it.
In C, you just talk to the native library.
In a single onDrawFrame callback (for which Java is passed a GL), can I use methods on the GL object, and also call NDK methods which access the openGL library?
In other words, is the GL object just a wrapper for the same instance of the native library?
View 3 Replies
View Related
Oct 13, 2010
When the AVD screen is in an Eclipse frame there is a button on the frame to rotate orientation. How do I cause the same action when the AVD screen is floating outside Eclipse?
View 4 Replies
View Related
Jul 18, 2010
How to add a floating bar that will stay at the top of a layout page, even when a user is scrolling through the contents of that layout?
View 1 Replies
View Related
Nov 11, 2010
What is this widget called (the one with the three buttons).
View 4 Replies
View Related
Nov 25, 2009
I wonder how to make floating buttons, like the zoom button in the build-in web browsee?
Actually there are 2 things i'd like to know:
1. How to make a view(button) floating above other views? 2. How to make the fade in/fade out effect regarding to touch screen?
View 2 Replies
View Related
Oct 13, 2010
I am a developer and recently completed the implementation of my keyboard MessagEase. It's available on the Market (with its very- different features, making it quite unlike QWERTY).
This keyboard works fine as a replacement of the standard keyboard on an Android Phone. But for a An Android Tablet, it would work best if it's implemented as a floating, movable keyboard.
(the footprint of this keyboard is mostly dependable on the size of a human's finger; it remains the same even if the tablet's display is much larger than a phone's. Therefore it'll take a relatively smaller area on a tablet.)
If I use the current SDK hooks, it will have to take a significant portion of the screen, defeating the purpose.
View 2 Replies
View Related
Jun 7, 2010
It's kind of hard to explain, but an example of what I'm wanting to accomplish is like this: thought about generating the layout in html and using a web view, but I need to be able to perform an action when the user clicks on the image. Does anyone have any ideas?
View 1 Replies
View Related
Nov 17, 2010
I want to create layout like this on facebook app. Тo appear with effect from bottom to top.I don't know where to find example (xml and code) for this.
View 2 Replies
View Related
Aug 30, 2010
I would like to have the following screen in my application: button at the bottom of the screen; when user presses the button, a list with a number of items will appear and user should be able to click one of those to start another activity. The number of items can be different (depending on some other conditions); the popup is to be adjusted to the button. How would you suggest implementing this?
View 3 Replies
View Related
Feb 22, 2010
I have a large view.I have to show constant top and bottom in the screen. Which contain ImageView and TextView.On the screen this two remain at their position.FOY I am not using ListView.How can I do that so the the portion between the top and bottom only movable?
View 11 Replies
View Related
Aug 20, 2010
Will the horrible quality of Pandora since Froyo was launched be fixed anytime soon?
View 5 Replies
View Related
Mar 3, 2010
I've got a ListActivity using the Theme.Dialog theme and windowNoTitle set to true.
Unfortunately, when I do this, the header rows (just normal rows in the list but they look like sub headers) refuse to fill_parent width (instead, they wrap_content - the header text).
I noticed this was not a problem when using the Theme theme so I started narrowing everything down to what was causing the problem.
The answer: windowIsFloating. Theme.Dialog sets this to true, and if I override this to false, then the headers happily fill the parent width.
Is there a way around this (because I would like to set windowIsFloating to true)?
View 8 Replies
View Related
Aug 14, 2010
I'm having a problem with floating windows. My activity has an AutoCompleteTextView text in a floating window positioned at the top of the display. If enough text is entered to make the drop down appear it will be initially clipped to the bottom edge of the window. If you click on the drop down it appears unclipped.
I've stripped my activity down to a test program and put a copy here:
http://www.invisibility.org.uk/adaptertest.tgz
In summary, the main activity just inflates a view and positions it at the top of the display: Code...
View 2 Replies
View Related
Feb 9, 2010
I want to show a menu similar in look and feel to the sub-menus. I want the menu to come up when we tap on the screen. Is it possible to have sub-menus displayed without creating the main options menu? I do not want to use context menus for this.
View 3 Replies
View Related
Jul 9, 2010
I want to show a list of items when the user clicks an overlay item on a map. The user should be able to select any of these items and edit them. The list can have many items (more than that can fit in one active screen) therefore it needs to be scrollable
View 1 Replies
View Related
Oct 7, 2010
I bought Beautiful Widgets, installed them and removed them from my screen. I am deciding how I want my little Zio to look. And no, I am not upset at my little problem. I love and would recommend the program. However, this AM I noticed clouds floating across my email screen after the phone sat idle for an hour or so. I took a look at all running apps (Task Killer, sorry) and nothing seems to be running that would account for the animation. I asked Mr. Google about this and he is as clueless as I am.
View 4 Replies
View Related
Jul 13, 2010
It occur some problems to develop U/I. there is a PreferenceActivity that was aleady developped and is typecally like 'Settings' of android. by the way, the customer is requiring to change U/I like IPhone.Requirements are
1.application title-bar using ImageView(or TextView) positions to top
2. remove ContextMenu, alternativly static menu buttons positon to bottom.
3. PreferenceActivity is able to scroll and title-bar & menu buttons are fixed each positions.
just all. but It's very difficult to add & fix two views in Preference Activity.
View 3 Replies
View Related
Aug 12, 2010
I apologize for posting this but I've been looking for an answer to this question for a while. I posted this in someone elses thread but I figured this deserved it's own post since it's pretty much a deal breaker for me. Hopefully someone has the answer for me. Thanks in advance. "I've been looking for a reliable messaging app since I got my incredible, but I always stuck with the stock sms. The reason being is one HUGE glitch scared me away from handcent. the glitch where it would randomly send a text message to the wrong person from your contact list and pretty much pick a random contact to send the sms to. I can't really have that happen since I use my phone as my work phone and personal phone. It would be a VERY bad situation if a text message I was sending my girlfriend was randomly sent to someone from work or a customer. I've seen people posting about this glitch earlier this year but I've never seen anyone confirm whether it not the glitch has been fixed or still exists? It's not something I want to risk. I guess my reason for posting this is I am very curious to find out if that glitch has been fixed. I would LOVE to use hand cent or chomp but I would like some confirmation as to whether or not that glitch is no more. Can anyone confirm this?"
View 5 Replies
View Related