Default speed of android devices

Previous topic - Next topic

caffeinekid

I hope you did find it Kitty, good luck.

Fingers crossed that this will fix the CREATESCREEN command on some Android devices too? :)

Kitty Hello

It's the same code. I really hope it's fixed.

caffeinekid

Please let me know when the update is out. I have someone who can test my code on his Asus Transformer and tell me if it's better and if the fix works right.  :nw:

Kitty Hello

OK, I think about one last update before the big native-iOS compiler gets shipped.

AlienMenace

Apps published: 3

erico

Quote from: Kitty Hello on 2011-Oct-19
OK, I think about one last update before the big native-iOS compiler gets shipped.


GASP! :O

Kitty Hello

OK, I did some code changes, but I can't really test (here) now.
Can you please test the program attached and see if it runs and what warnings the debug console displays?



[attachment deleted by admin]

AlienMenace

Okay, on my Toshiba Thrive it came up:

A small white box with red center at the very top.
A Green filled rectangle with a small white box in the upper left, there is some white text as well but I can't make out what it says.
Down a bit is a red line with the white text "redline" beneath it.
Down a bit more is another line of white text that says "solid grab is on screen"... I think.

Tapping the screen...

The screen turns blue, there are 3 white boxes at the top and some white text down a ways that says "polyvec 40,40"

Tap the screen again, app quits.

Here is the log:
Code (glbasic) Select

I/glbasic ( 2655): SDL_GetVideoInfo = 800x1232 @ 16 bpp
I/glbasic ( 2655): Setting video mode: 800x1232x16 fl=4800000
I/SDL     ( 2655): [STUB] GL_LoadLibrary
I/SDL     ( 2655): Starting up OpenGL ES 1.1
D/libEGL  ( 2655): loaded /system/lib/egl/libGLES_android.so
D/libEGL  ( 2655): loaded /system/lib/egl/libEGL_tegra.so
I/ActivityManager(  135): Displayed com.glbasic.glbasicenginetest/org.libsdl.app
.SDLActivity: +926ms
W/IInputConnectionWrapper(  243): showStatusIcon on inactive InputConnection
D/libEGL  ( 2655): loaded /system/lib/egl/libGLESv1_CM_tegra.so
D/libEGL  ( 2655): loaded /system/lib/egl/libGLESv2_tegra.so
I/glbasic ( 2655): SDL_SetVideoMode seems to be 1
I/glbasic ( 2655): get accurate timer - 1st call
I/glbasic ( 2655): flip - 1st call
I/glbasic ( 2655): BGRA ext supported
I/glbasic ( 2655): Texture size limit: 2048
I/glbasic ( 2655): init fbo
I/glbasic ( 2655): 2D VP
I/glbasic ( 2655): OGRB init [OK]
I/glbasic ( 2655): Cptn
I/glbasic ( 2655): Network
I/glbasic ( 2655): Input
I/glbasic ( 2655): Window mode
I/glbasic ( 2655): Create DXin
I/glbasic ( 2655): sdl_grab
I/glbasic ( 2655): reptr
I/glbasic ( 2655): getexe
I/glbasic ( 2655): cd
I/glbasic ( 2655): set cdir to: /data/data/com.glbasic.glbasicenginetest
I/glbasic ( 2655): exepath=curdir= /data/data/com.glbasic.glbasicenginetest
V/SDL     ( 2655): SDL audio: opening device
V/SDL     ( 2655): SDL audio: wanted stereo 16-bit 44.1kHz, 512 frames buffer
V/SDL     ( 2655): SDL audio: got stereo 16-bit 44.1kHz, 4096 frames buffer
I/glbasic ( 2655): set cdir to: files
I/glbasic ( 2655): Init Finalized
I/glbasic ( 2655): glBindRenderbufferExt failed 8cd6
I/glbasic ( 2655): solid  grab != on screen
D/dalvikvm(  135): GC_EXPLICIT freed 486K, 43% free 16051K/27847K, paused 8ms+5m
s
I/glbasic ( 2655): polyvec 40,40
D/dalvikvm(  807): GC_EXPLICIT freed 46K, 7% free 7353K/7879K, paused 3ms+2ms
I/glbasic ( 2655): Shut down GLB
I/glbasic ( 2655): glb is shut down
I/SDL     ( 2655): [STUB] GL_UnloadLibrary
E/InputDispatcher(  135): channel '40ba3438 com.glbasic.glbasicenginetest/org.li
bsdl.app.SDLActivity (server)' ~ Consumer closed input channel or an error occur
red.  events=0x8
E/InputDispatcher(  135): channel '40ba3438 com.glbasic.glbasicenginetest/org.li
bsdl.app.SDLActivity (server)' ~ Channel is unrecoverably broken and will be dis
posed!
I/MPL-mldl_cfg_mpu:(  135): mpu3050_suspend: suspending sensors to 0000
D/gralloc (   88): Attempting to delete a locked buffer!
D/gralloc (   88): Buffer 23 locks: (tid = 2663 (x1), usage = 0x200)
I/ActivityManager(  135): Process com.glbasic.glbasicenginetest (pid 2655) has d
ied.
I/WindowManager(  135): WIN DEATH: Window{4106d4e0 SurfaceView paused=false}
I/WindowManager(  135): WIN DEATH: Window{40ba3438 com.glbasic.glbasicenginetest
/org.libsdl.app.SDLActivity paused=false}
I/WindowManager(  135): WINDOW DIED Window{40ba3438 com.glbasic.glbasicenginetes
t/org.libsdl.app.SDLActivity paused=false}
I/MPL-mldl_cfg_mpu:(  135): mpu3050_suspend: Will resume next to 0078
Apps published: 3

Kitty Hello

run it again, and also on windows.
In stage 1, the green box ought have 2 boxes with text underneath. One (left) says "grb" - that's GRABSPRITE.
the center one says "scr", that's CREATESCREEN.

If the center box is not there, there's something bad going on.

In your log I see:
QuoteD/gralloc (   88): Attempting to delete a locked buffer!
which is very intersting!!
Can you insert some lines:

STDOUT "LINE: "+CODE_LINE()+"\n"

along the source to find out where this error occurs? Thanks a lot!

Gary

Quote from: Kitty Hello on 2011-Oct-25
OK, I did some code changes, but I can't really test (here) now.
Can you please test the program attached and see if it runs and what warnings the debug console displays?

I will check this out on my Asus Transformer tonight :) Fingers crossed

AlienMenace

I'll need the source code, there is only an apk file in the zip.
Apps published: 3

Gary

on my asus transformer I have the SCR box missing as well

Here is my debug information

Code (glbasic) Select

--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
I/glbasic ( 1778): onCreate
I/glbasic ( 1778): Updating media files
I/glbasic ( 1778): assets found, copying...
I/glbasic ( 1778): assets still up to date, proceed to main...
I/glbasic ( 1778): done with updating
I/glbasic ( 1778): external files dir is /data/data/com.glbasic.glbasicenginetes
t/files
I/glbasic ( 1778): external storage /mnt/sdcard/Download
I/glbasic ( 1778): onResume()
I/SDL     ( 1778): pixel format RGB_565
I/SDL     ( 1778): SDL_Android_Init()
I/glbasic ( 1778): timer
I/glbasic ( 1778): rbow
I/glbasic ( 1778): rbow init
I/glbasic ( 1778): SDL_init video
I/glbasic ( 1778): SDL_GetVideoInfo = 800x1232 @ 16 bpp
I/glbasic ( 1778): Setting video mode: 800x1232x16 fl=4800000
I/SDL     ( 1778): [STUB] GL_LoadLibrary
I/SDL     ( 1778): Starting up OpenGL ES 1.1
I/glbasic ( 1778): SDL_SetVideoMode seems to be 1
I/glbasic ( 1778): get accurate timer - 1st call
I/glbasic ( 1778): flip - 1st call
I/glbasic ( 1778): BGRA ext supported
I/glbasic ( 1778): Texture size limit: 2048
I/glbasic ( 1778): init fbo
I/glbasic ( 1778): 2D VP
I/glbasic ( 1778): OGRB init [OK]
I/glbasic ( 1778): Cptn
I/glbasic ( 1778): Network
I/glbasic ( 1778): Input
I/glbasic ( 1778): Window mode
I/glbasic ( 1778): Create DXin
I/glbasic ( 1778): sdl_grab
I/glbasic ( 1778): reptr
I/glbasic ( 1778): getexe
I/glbasic ( 1778): cd
I/glbasic ( 1778): set cdir to: /data/data/com.glbasic.glbasicenginetest
I/glbasic ( 1778): exepath=curdir= /data/data/com.glbasic.glbasicenginetest
I/glbasic ( 1778): set cdir to: files
I/glbasic ( 1778): Init Finalized
I/glbasic ( 1778): glBindRenderbufferExt failed 8cd6
I/glbasic ( 1778): solid  grab != on screen
I/glbasic ( 1778): polyvec 40,40
I/glbasic ( 1778): Shut down GLB
I/glbasic ( 1778): glb is shut down
I/SDL     ( 1778): [STUB] GL_UnloadLibrary


Hope that helps
Gary

Gary

Quote from: AlienMenace on 2011-Oct-25
I'll need the source code, there is only an apk file in the zip.

Not sure the source will help, I suspect that that APK file was compiled with a special beta version that Gernot has created to try to fix this problem

caffeinekid

Awww doesn't sound promising at the moment then. Fingers crossed that it can still be sorted and that the Asus Transformer has the tech to handle this command somehow.

Kitty Hello

Yes. There's surely a way to get it working.