[android-developers] Function inlining

2009-10-07 Thread Viktor Linder
se are left to the VM? Does the Dalvik VM do inlining of functions at all, or did it just decide to not inline this specific instance? Curious to hear a response from someone more familiar with the Dalvik VM than me. Best regards, Viktor Linder --~--~-~--~~~---~--~---

[android-developers] Re: Function inlining

2009-10-07 Thread Viktor Linder
Ok. On a related note, has anyone used a preprocessor of some sort and managed to integrate it with Eclipse? Best regards, Viktor Linder On 7 Okt, 18:32, Romain Guy wrote: > There's no inlining at the moment. > > > > On Wed, Oct 7, 2009 at 6:31 AM, Viktor Linder wr

[android-developers] Creating 5:6:5 PNGs?

2010-01-26 Thread Viktor Linder
Does anyone know of a tool (preferably free/open source) for converting 24-bit PNGs to 16-bit? I have searched around a bit and it seems like PNG perhaps does not support 16-bit modes. If so, how do you package your textures to minimize load-time processing? All answers appreciated! -- You rece

[android-developers] Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-16 Thread Viktor Linder
I am having trouble with implementing VBOs for my game. I get crashes at random when calling glDrawElements() directly after glGenBuffers() / glBufferData(). The crashes disappear when I add printouts which leads me to believe it might be a race condition between glBufferData() and glDrawElements()

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-16 Thread Viktor Linder
                      gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0); >                         //gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0); > > This code draws without indices but the commented code for indices is > there. > I use fixed point coordinates for verts, normals and UVs.  Y

[android-developers] Re: glDeleteBuffers crashes

2010-02-23 Thread Viktor Linder
hread/thread/87827933dc7346c6 Best regards, Viktor Linder On 22 Feb, 22:20, Clankrieger wrote: > Hi, > > I tried to use VBO on 1.6 Android SDK and get a crash whenever I try > to give the VBO id free usingglDeleteBuffers. The issue has already > been filed here: > > http:/

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-25 Thread Viktor Linder
k without destroying any memory. So it is not a gc issue. Also, while the buffer might get filled with "junk" it will still be valid floats of some sort, since the array is only written to from java. Best regards, Viktor Linder On 25 Feb, 20:08, Robert Green wrote: > Actually, let me

[android-developers] Re: Crash in glDrawElements() using VBOs just after glBufferData()

2010-02-26 Thread Viktor Linder
> > Would you be willing to show a bit of your DynamicBuffer code so I can > see what it's doing?  It's hard for me to help when there's a black > box in the middle. > > On Feb 25, 1:41 pm, Viktor Linder wrote: > > > To clarify, in the original example, no bu

[android-developers] Re: Android OpenGL Game - App Architecture and Threading Logic

2010-04-10 Thread Viktor Linder
during its loop) this would be achieved. Best regards, Viktor Linder On 9 Apr, 18:03, Robert Green wrote: > It's pretty easy to do this: > > I use a World to write to and read from for the two "sides."  Makes > networking nice too.  My World has a simple lock.  Only one

[android-developers] Data readable by two apps

2010-05-07 Thread Viktor Linder
would need to load a savegame created by the free version. All answers appreciated! Best regards, Viktor Linder -- 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@googlegro

[android-developers] Posting events to View

2010-07-07 Thread Viktor Linder
place and handle events. Yet, there is a function post() in View where I can post a Runnable object that will execute in the UI thread without involvement of Handler. Can I not call this function from threads other than the UI thread?? I'm confused! Best regards, Viktor Linder -- You rec

[android-developers] Intermediaries for publishing on Android Market

2010-07-26 Thread Viktor Linder
Hi! I live in Sweden, and so cannot publish paid apps on the Android Market. Is there any company in a "publishing enabled" country which you can publish apps through (for ex. a percentage fee)? All answers appreciated! Best regards, Viktor Linder -- You received this message becau

[android-developers] Emulator, forcing portrait mode

2010-07-29 Thread Viktor Linder
be rotated 90 degrees. Is this a bug in the emulator or am I wrong in my interpretation of android:screenOrientation? Best regards, Viktor Linder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Free version of paid app

2010-12-10 Thread Viktor Linder
ed to have its own package name? Any other technical considerations? All answers appreciated! Best regards, Viktor Linder -- 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

[android-developers] READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-21 Thread Viktor Linder
#x27;t write to the sd card nor use the phone function). Anyone in this group have experience dealing with this issue? All answers appreciated! Best regards, Viktor Linder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Re: READ_PHONE_STATE and WRITE_EXTERNAL_STORAGE automatically required?

2010-06-22 Thread Viktor Linder
;android-4". Is there a difference in behaviour between downloading from the Market and the browser? Best regards, Viktor Linder On 22 Juni, 05:49, Dianne Hackborn wrote: > As usual, when new features are added or changes made, targeting the > platform version (or better) where that