[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-08-01 Thread Edvinas Kilbauskas
OK, I did that. And yes. It doesn't have the delay anymore! But the problem is... It's Canvas. I don't need canvas, it doesn't fulfill my needs. I need OpenGL. What the hell could be wrong? This is REALLY strange. OpenGL ES 1.0 has delay, ES 1.1 has delay, ES 2.0 has delay. Canvas - no delay! Th

[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-07-31 Thread Edvinas Kilbauskas
2013 m. liepa 31 d., trečiadienis 19:28:23 UTC+3, Streets Of Boston rašė: > > Is your render-mode continuously or when-dirty? > If it is when-dirty, be sure to call surfaceView.requestRender() in your > onTouchEvent implementation. > > It's RENDERMODE_CONTINUOUSLY. Also, I took the advice, and

[android-developers] Re: GLSurfaceView lag/delay on Galaxy S3.

2013-07-30 Thread Edvinas Kilbauskas
> The best solution to your problem is probably to "bite the bullet" and > rewrite your code to use shaders in OpenGL ES 2.0. All major phones and > quite a few minor ones support it now. > > It may be your only solution, if the Galaxy S3 has to move too many more > bits than the P350 did, or

[android-developers] GLSurfaceView lag/delay on Galaxy S3.

2013-07-27 Thread Edvinas Kilbauskas
Hello, so I have this problem with galaxy S3 and OpenGL ES 1.0. Here's little backstory: I had LG P350 (600MHZ CPU, Adreno 200 GPU, 2.8 inch screen) for 2 years or so. And I was developing this little game framework which used OpenGL. My old LG handled it pretty well, good framerates, no lags, e

[android-developers] How to check if screen is held touched?

2013-02-23 Thread Edvinas Kilbauskas
Ok, so I'm having a little problem with OnTouchListener on android 2.3+ devices. I'm making a game, when you touch your screen, the player jumps, and if you hold your screen touched the player falls slower. Everything seem good on my android 2.2 device. Because I get MotionEvent.ACTION_MOVE even

[android-developers] Re: OnTouchListener problems

2013-02-23 Thread Edvinas Kilbauskas
Never mind, I fixed it. Thanks for help anyways. :) 2013 m. vasaris 23 d., šeštadienis 16:00:09 UTC+2, Edvinas Kilbauskas rašė: > > Ok, so I'm having a little problem with OnTouchListener on android 2.3+ > devices. > I'm making a game, when you touch your screen, the playe

[android-developers] OnTouchListener problems

2013-02-23 Thread Edvinas Kilbauskas
Ok, so I'm having a little problem with OnTouchListener on android 2.3+ devices. I'm making a game, when you touch your screen, the player jumps, and if you hold your screen touched the player falls slower. Everything seem good on my android 2.2 device. Because I get MotionEvent.ACTION_MOVE even

[android-developers] Re: Question about SurfaceView and Threads

2012-09-11 Thread Edvinas Kilbauskas
Oh my gosh! Thank you! You just made my day. Now I finally understand it! :))) Thanks thanks thanks! I can't say how much I thank you my smart man :) 2012 m. rugsėjis 10 d., pirmadienis 12:03:54 UTC+3, jb rašė: > > Harri Sm�tt schrieb: > > That's not true. Android supports basic Java Threads a

[android-developers] Question about SurfaceView and Threads

2012-09-09 Thread Edvinas Kilbauskas
Hello, I recently started learning development for android (Game development to be specific). And I came across the question, to which I couldn't find an answer. So my question would be why does this work?: public class MainActivity extends Activity{ OurView v; TextView textView; Random random;