Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Finally: GL to GLES runtime (glshim from openpandora)

    Reply
    Page 2 of 5 | Prev |   1   2   3     4   | Next | Last
    nokiabot | # 11 | 2013-08-02, 04:51 | Report

    keep the ***** on

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nokiabot For This Useful Post:
    seanmcken

     
    szopin | # 12 | 2013-08-02, 09:55 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by szopin; 2013-08-02 at 15:13.
    The Following 3 Users Say Thank You to szopin For This Useful Post:
    AapoRantalainen, foobar, nokiabot

     
    freemangordon | # 13 | 2013-08-02, 10:21 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 6 Users Say Thank You to freemangordon For This Useful Post:
    Estel, foobar, fw190, MartinK, nokiabot, szopin

     
    AapoRantalainen | # 14 | 2013-08-03, 20:22 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to AapoRantalainen For This Useful Post:
    szopin

     
    freemangordon | # 15 | 2013-08-03, 22:46 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by freemangordon; 2013-08-03 at 23:04.
    The Following 4 Users Say Thank You to freemangordon For This Useful Post:
    AapoRantalainen, Estel, MartinK, szopin

     
    AapoRantalainen | # 16 | 2013-08-05, 22:35 | Report

    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).

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 11 Users Say Thank You to AapoRantalainen For This Useful Post:
    cproc, disappear, Estel, foobar, HtheB, jessi3k3, MartinK, MINKIN2, nokiabot, Sourav.dubey, szopin

     
    Android_808 | # 17 | 2013-08-06, 07:01 | Report

    great work. vid of armagetron looks very smooth.

    just wondering what other titles we could now try porting?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Android_808 For This Useful Post:
    nokiabot, Sourav.dubey

     
    MartinK | # 18 | 2013-08-06, 09:37 | Report

    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 ?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to MartinK For This Useful Post:
    AapoRantalainen, nokiabot, Sourav.dubey

     
    HtheB | # 19 | 2013-08-06, 13:54 | Report

    Blender?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to HtheB For This Useful Post:
    AapoRantalainen, nokiabot, Sourav.dubey

     
    taixzo | # 20 | 2013-08-06, 15:29 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to taixzo For This Useful Post:
    AapoRantalainen, Estel

     
    Page 2 of 5 | Prev |   1   2   3     4   | Next | Last
vBulletin® Version 3.8.8
Normal Logout