Active Topics

 


Reply
Thread Tools
nokiabot's Avatar
Posts: 1,974 | Thanked: 1,834 times | Joined on Mar 2013 @ india
#11
keep the ***** on
 

The Following User Says Thank You to nokiabot For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#12
Originally Posted by AapoRantalainen View Post
Yes, https://github.com/lunixbochs/glshim/issues/13


I see these errors when quitting/ending, https://github.com/lunixbochs/glshim/issues/15

I got armagetron's menus working. Gameplay area is black, but texts top on game are working. (using this https://github.com/lunixbochs/glues and dropping SDL_WM_SetIcon for keyboard focus)
Got it working with a bit of playing with folders (unsquashed pnd from pandora, their config file was useful). Textures work, but sadly at 800x480 getting only 4-5 fps (even less on maps with mazes): With ping in the 200s on 3g would be fun. Too bad Jolla is going with wayland, we could use that double-core

EDIT: Thanks freeman, it was indeed mesa GLU (libGLU.so needed '.1') + libGL, with proper GLU (from github glues) getting same black screen in game at least the fps are now >40

Last edited by szopin; 2013-08-02 at 15:13.
 

The Following 3 Users Say Thank You to szopin For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#13
Originally Posted by szopin View Post
Got it working with a bit of playing with folders (unsquashed pnd from pandora, their config file was useful). Textures work, but sadly at 800x480 getting only 4-5 fps (even less on maps with mazes): With ping in the 200s on 3g would be fun. Too bad Jolla is going with wayland, we could use that double-core
Hmm, 4-5 fps is too low IMO, are you sure it is really accelerated? You can grab PVRTrace and PVRTool to trace GL calls and see WTF is going on.
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 6 Users Say Thank You to freemangordon For This Useful Post:
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#14
Originally Posted by freemangordon View Post
You can grab PVRTrace
Can you very briefly tell what is pvrtrace and where it can be grabbed? Is it used same way as 'trace' i.e. I need arm binary for Maemo5 and put it to the device?
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#15
Originally Posted by AapoRantalainen View Post
Can you very briefly tell what is pvrtrace and where it can be grabbed? Is it used same way as 'trace' i.e. I need arm binary for Maemo5 and put it to the device?
PVRTrace and PVRTool are part of Imagination's PowerVR SDK:

http://www.imgtec.com/powervr/insider/pvrtrace.asp
http://www.imgtec.com/powervr/inside...vr-pvrtune.asp

Latest versions work pretty much OK with N900, though you'll need recent OpenGL support on your desktop for PVRTrace frame analysis to work(I was unable to do it on my WindowsXP machine).

I use the following pvrtrace.cfg:

Code:
[host]
EglLibraryPath = /usr/lib/libEGL.so
Es1LibraryPath = /usr/lib/libGLES_CM.so
Es2LibraryPath = /usr/lib/libGLESv2.so
[record]
TraceFile = /home/user/MyDocs/tmp/trace-%pid.pvrt
RecordData = 1
StartFrame = 1
EndFrame = 10
;Network = 1
;NetworkSendData = 1
Change EndFrame according to your needs. Also make sure /home/user/MyDocs/tmp dir exists

To capture a trace for a particualr program, copy the libs into the dir the traced binary is, create pvrtrace.cfg in the same dir with the above content and use:
Code:
LD_PRELOAD="./libEGL.so ./libGLESv2.so ./libGLES_CM.so ./libPVRTrace.so" ./$BINARY
On windows the trace libs for N900 are in Imagination\PowerVR\GraphicsSDK\PVRTrace\Recorder\ Linux_armv7, too lazy to power the laptop up to check where are they located no Linux, but I am sure you'll figure it out if needed.

For PVRTune you need to copy PVRPerfServerDeveloper on the device and run it. I found the default data capture period of 5ms(iirc) too low for my needs, so I used 30ms, but I guess it depends on the tuned program(I used it against gecko )

All tools that come with the SDK have good documentation, however, if you need any further instructions I'll gladly try to help, just ask.

EDIT:
The above LD_PRELOAD is for GLES2.0, for a different version maybe more or different trace libs need to be loaded.
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer


Last edited by freemangordon; 2013-08-03 at 23:04.
 

The Following 4 Users Say Thank You to freemangordon For This Useful Post:
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#16
I made packages to the extras-devel: libglshim-dev, libglushim-dev, libglshim, libglushim. And they are working as expected!

glshim is https://github.com/lunixbochs/glshim
glushim is https://github.com/lunixbochs/glues/tree/glu (i.e. 'glu' branch in glues, this was cure for black armagetron).
 

The Following 11 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#17
great work. vid of armagetron looks very smooth.

just wondering what other titles we could now try porting?
 

The Following 2 Users Say Thank You to Android_808 For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#18
Originally Posted by Android_808 View Post
great work. vid of armagetron looks very smooth.

just wondering what other titles we could now try porting?
Frets on fire ?
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 3 Users Say Thank You to MartinK For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#19
Blender?
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following 3 Users Say Thank You to HtheB For This Useful Post:
Posts: 959 | Thanked: 3,427 times | Joined on Apr 2012
#20
Originally Posted by HtheB View Post
Blender?
Oh, I am hoping for this. Someone made a GL->GLES header file a ways back (4 years ago) and posted a video of Blender running smoothly on the N900...but then it vanished and I could only ever find a software GL version.

Not that Blender would necessarily be useful, but...to be able to say, "well, my phone can run Blender!" is fun.
 

The Following 2 Users Say Thank You to taixzo For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 06:02.