Cloud's Diary (Wip)


Steinbock

Still Fresh
Joined
Aug 18, 2006
Messages
51
Age
49
Location
Fajauna , Switzerland
Website
mountainsoft.ch
Hi Magic Sam

As I love underrated computer systems (i personally started in mid 80ties wit MSX) i would like to programm for such systems too. Even for not commerctional, just for fun.
But... I am no professional I do all in my freetime wich i also have to share with family.
Anyway.. maby i will look into Pandora/Pyra developing and will see what's already existing (developement tools, eventually 3D support, and so on).

best regards, Steinbock
 

edgex004

Advanced Member
Joined
Jan 5, 2008
Messages
1,198
Nice! Cool I thought maybe you had switched to a less portable engine. Can't wait to try on Pandora.
 

ingoreis

Advanced Member
Staff member
Joined
Jan 18, 2010
Messages
8,095
Age
39
Location
49.491276,8.423518
OK.
WIZ-version is horrible sloooow... (3-4fps)

can someone pleas try Pandora-Version. I have no :p&|a: :$

Thank you
Hey you did not post that in the Gp2x Forum :D

I will test the Pandora Version this Evening.
When it work good..then i will make a Video if it for my Youtube Account :D

I have to test Iso Optical Drive too :D
 

ingoreis

Advanced Member
Staff member
Joined
Jan 18, 2010
Messages
8,095
Age
39
Location
49.491276,8.423518
ok here the Video from my short Test :)
Here ist the PND Runout:
=======================================================================================
PND : /media/FAT32/pandora/desktop/Cloud.pnd
PND_FSTYPE : Squashfs
APPDATADIR : /media/FAT32/pandora/appdata/mountainsoft.cloud
APPDD_FSTYPE : vfat
PND_CPUSPEED : <unset>
EXENAME : ./pandora-exe.pnd
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
WARNING Union already mounted, using it
+++++++
Loopback devices :
/dev/loop0: [b301]:83 (/media/FAT32/pandora/desktop/Cloud.pnd)
Are mounted on :
/dev/loop0 on /mnt/utmp/mountainsoft.cloud type squashfs (ro,relatime)
For these Union :
none on /mnt/utmp/mountainsoft.cloud type aufs (rw,relatime,si=108045e4,noplink)
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application ( ./pandora-exe.pnd ) ----------
[ FAILED]--- Waiting the Union to be available ----------
umount: /mnt/utmp/mountainsoft.cloud: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /mnt/utmp/mountainsoft.cloud: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /mnt/utmp/mountainsoft.cloud: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
WARNING umount UNION failed, didnt clean up. Process still using this FS :
2361 ? S 0:00 /bin/bash /usr/pandora/scripts/pnd_run.sh -p /media/FAT32/pandora/desktop//Cloud.pnd -e ./pandora-exe.pnd -b mountainsoft.cloud
2490 ? RLl 15:50 ./pandora-exe.pnd
4207 ? S 0:00 /bin/bash /usr/pandora/scripts/pnd_run.sh -p /media/FAT32/pandora/desktop//Cloud.pnd -e ./pandora-exe.pnd -b mountainsoft.cloud
4292 ? RLl 0:36 ./pandora-exe.pnd
+++++++
Loopback devices :
/dev/loop0: [b301]:83 (/media/FAT32/pandora/desktop/Cloud.pnd)
Are mounted on :
/dev/loop0 on /mnt/utmp/mountainsoft.cloud type squashfs (ro,relatime)
For these Union :
none on /mnt/utmp/mountainsoft.cloud type aufs (rw,relatime,si=108045e4,noplink)
[SUCCESS]--- uMount the PND ----------
=======================================================================================
Return code is : 2
Can't init SDL.
Failed loading libpulse-simple.so.0: libpulse-simple.so.0: cannot open shared object file: No such file or directory
timer
rbow
rbow init
VSync unsupported on old SDL versions (before 1.2.10).
sdl init video PANDORA
SDL_GetVideoInfo = 800x480 @ 16 bpp
800x480 sdl
get accurate timer - 1st call
flip - 1st call
BGRA ext supported
Texture size limit: 2048
init fbo
ext: glBindRenderbufferOES [FAILED]ext: glDeleteRenderbuffersOES [FAILED]ext: glGenRenderbuffersOES [FAILED]ext: glRenderbufferStorageOES [FAILED]ext: glBindFramebufferOES [FAILED]ext: glDeleteFramebuffersOES [FAILED]ext: glGenFramebuffersOES [FAILED]ext: glCheckFramebufferStatusOES [FAILED]ext: glFramebufferTexture2DOES [FAILED]ext: glFramebufferRenderbufferOES [FAILED]ext: glGetFramebufferAttachmentParameterivOES [FAILED]can't use framebuffer object
2D VP
OGRB init [OK]
Cptn
Network
Input
Window mode
Create DXin
getexe
cd
exepath=curdir= /mnt/utmp/mountainsoft.cloud
shoeboxing...
init gettimer
clear screen
flip
mk2D
finding font...
open sound: 44100 Hz 2 chan, buffers 4096, format -32752
Init Finalized
VSync unsupported on old SDL versions (before 1.2.10).
Shut down GLB
glb is shut down
exit
[SUCCESS]--- Starting the application ( ./pandora-exe.pnd ) ----------
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
[doublepost=1471992650,1471986984][/doublepost]@Steinbock
I modified your PND with updated Libs from our Codeblocks.
Now we have not many Errors more and its faster than the first Video.
Here the PND Runout:
=======================================================================================
PND : /media/FAT32/pandora/desktop/Cloud.pnd
PND_FSTYPE : Squashfs
APPDATADIR : /media/FAT32/pandora/appdata/mountainsoft.cloud
APPDD_FSTYPE : vfat
PND_CPUSPEED : <unset>
EXENAME : ./runscript.sh
ARGUMENTS : <unset>
=======================================================================================
[ START ]--- Mount the PND ----------
Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/mountainsoft.cloud"
Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/FAT32/pandora/appdata/mountainsoft.cloud=rw+nolwh":"/mnt/pnd/mountainsoft.cloud=rr" none "/mnt/utmp/mountainsoft.cloud"
[SUCCESS]--- Mount the PND ----------
[ START ]--- Starting the application ( ./runscript.sh ) ----------
--------------------------------------------------------------
Setting PATH to /mnt/utmp/mountainsoft.cloud:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
--------------------------------------------------------------
Setting LD_LIBRARY_PATH to /mnt/utmp/mountainsoft.cloud/lib:/lib:/usr/lib
Can't init SDL.
no input method could be opened
timer
rbow
rbow init
VSync unsupported on old SDL versions (before 1.2.10).
sdl init video PANDORA
SDL_GetVideoInfo = 800x480 @ 16 bpp
800x480 sdl
get accurate timer - 1st call
flip - 1st call
BGRA ext supported
Texture size limit: 2048
init fbo
ext: glBindRenderbufferOES [FAILED]ext: glDeleteRenderbuffersOES [FAILED]ext: glGenRenderbuffersOES [FAILED]ext: glRenderbufferStorageOES [FAILED]ext: glBindFramebufferOES [FAILED]ext: glDeleteFramebuffersOES [FAILED]ext: glGenFramebuffersOES [FAILED]ext: glCheckFramebufferStatusOES [FAILED]ext: glFramebufferTexture2DOES [FAILED]ext: glFramebufferRenderbufferOES [FAILED]ext: glGetFramebufferAttachmentParameterivOES [FAILED]can't use framebuffer object
2D VP
OGRB init [OK]
Cptn
Network
Input
Window mode
Create DXin
getexe
cd
exepath=curdir= /mnt/utmp/mountainsoft.cloud
shoeboxing...
init gettimer
clear screen
flip
mk2D
finding font...
open sound: 44100 Hz 2 chan, buffers 4096, format -32752
Init Finalized
VSync unsupported on old SDL versions (before 1.2.10).
Shut down GLB
glb is shut down
exit
[SUCCESS]--- Starting the application ( ./runscript.sh ) ----------
[ START ]--- Restoring the frame buffer status ----------
[SUCCESS]--- Restoring the frame buffer status ----------
[ START ]--- Restoring nub mode ----------
[SUCCESS]--- Restoring nub mode ----------
[ START ]--- uMount the PND ----------
[ START ]--- Waiting the Union to be available ----------
[SUCCESS]--- Waiting the Union to be available ----------
rmdir: failed to remove `/mnt/utmp/mountainsoft.cloud': Device or resource busy
[ START ]--- Waiting the PND mount dir to be free ----------
[SUCCESS]--- Waiting the PND mount dir to be free ----------
cleanup done
[SUCCESS]--- uMount the PND ----------
=======================================================================================
Return code is : 2
And the new Video:

and the newer PNDis in the Attachments :D
 

Attachments

Magic Sam

Forever Homebrew
Joined
Aug 10, 2007
Messages
2,245
Age
38
Location
Innsmouth, MA
Hi all,

I finally gave @ingoreis ' version a go today :)

The game is currently extremely slow (even with OC @ 825 MHz), and fails to start on my Rebirth with SGX driver 4.10 (it works with 4.03.00.02 though).

@ingoreis : regarding SDL error messages, did you give @notaz ' improved version a try ?

EDIT: OK, I did try it, but couln't notice any improvement. I also tried things like LIBGL_FB=1 and LIBGL_BATCH=1, but to no avail...

EDIT 2: I don't think the CPU is the bottleneck (~half idle @825 MHz), so the SGX is the issue here IMHO. @Steinbock : any idea how to ease the load on it ?

@Steinbock : could this link be of any help to you ?

Anyway, I think it's a good start ! Please keep up the good work :)

Cheers, Magic Sam
 
Last edited:

Steinbock

Still Fresh
Joined
Aug 18, 2006
Messages
51
Age
49
Location
Fajauna , Switzerland
Website
mountainsoft.ch
@Magic Sam

Thank you for your investigations.
About Pandora I really don't know anything. Even not how to make a correct PND :)
Tonight i make some tests with the code on WIZ. Somehow i feel like bottleneck is more related with acces to dimensional arrays or something like this.
When i disable most draw-commands, there is nearly no difference, so GFX should not be the problem.
The graphic error with Cloud-Sprite is also something what could be solved somehow:).
 

Magic Sam

Forever Homebrew
Joined
Aug 10, 2007
Messages
2,245
Age
38
Location
Innsmouth, MA
@Steinbock : you're welcome :)

There are some nice PND How-To's for you here.

Could you post the dimensional arrays parts of your code on the boards ? Maybe our great gurus could have a look at it ?

Cheers, Magic Sam
 

Steinbock

Still Fresh
Joined
Aug 18, 2006
Messages
51
Age
49
Location
Fajauna , Switzerland
Website
mountainsoft.ch
OK. I found one BIG time-consumer ;)

I have a bubblesort-routine for an array with 32 indexes. when i turn off, game is nearly playable even on WIZ.


Code:
    FOR index=1 TO 31
        drawlist[index]=index
    NEXT//index

    FOR index=1 TO 30
        FOR j=1 TO 30
            dixA=drawlist[j]
            dixB=drawlist[j+1]
            IF (object.list[dixA].worldX>object.list[dixB].worldX) OR (object.list[dixA].worldY>object.list[dixB].worldY) OR (object.list[dixA].worldZ>object.list[dixB].worldZ)
                val=drawlist[j]
                drawlist[j]=drawlist[j+1]
                drawlist[j+1]=val
            ENDIF
        NEXT//j
    NEXT//index
drawlist is a pointerlist to effective datas.

i think i should implement a quicksort algorythm ?

EDIT1: all variables are Integers
 
Last edited:
Top