I will give a bit more info:
Building GPE:
Code:
#!/bin/sh #!
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../bgd-runtime
PATH=$PATH:../bgd-runtime
echo 2 > /proc/cpu/alignment
bgdi tujuego
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu
Control scheme:
up = 0
up-left = 1
left = 2
down-left = 3
down = 4
down-right = 5
right = 6
up-right = 7
menu = 8
select = 9
L-Button = 10
R-Button = 11
A = 12
B = 13
X = 14
Y = 15
VOL + = 16
VOL - = 17
EXAMPLE:
IF (get_joy_button (0.8) == 1) pulso_boton_menu; ELSE no_pulso_boton_menu; END
The first parameter is the number of joystick, always 0.
MAKING OF A BENNU FENIX:
Bennu is modular, meaning that you must define which libraries are to be used after PROGRAM. This is a standard list of libraries that can load a game:
Code:
#ifdef __VERSION__
import "mod_video";
import "mod_sound";
import "mod_key";
import "mod_joy";
import "mod_string";
import "mod_math";
import "mod_proc";
import "mod_grproc";
import "mod_text";
import "mod_map";
import "mod_time";
import "mod_timers";
import "mod_file";
import "mod_wm";
import "mod_scroll";
import "mod_rand";
import "mod_screen";
import "mod_dir";
import "mod_effects";
import "mod_blendop";
import "mod_draw";
#endif
# ifdef __VERSION__, lets have the same source code and compile it in as Fenix Bennu.
Keep in mind:
* The performance of FADE and ANGLE are different.
* We can save libraries BGD RUNTIME folder that we will not use.
MEMORY:
There 39Mb of free RAM in ufenix I think there is more free RAM.
However Bennu in can be loaded and displayed differently FPGs of 8bits palette simultaneously, an FPG to 8bits represents a 50% savings of memory compared to 16bits.
PERFORMANCE:
Must first be noted that Fenix 092 is slow in its Windows version was launched with a mean change in the management of processes (I betatesting of 087 to 093, reporting bugs, performance tests, etc.), under certain conditions yields the same level as 084, especially as both 091 Fenix 093pre9 are faster (all talking about windows)
Now Wiz:
Test: A scenario with 4 to 16 bits of scroll drawings, one animated and deformation on a map to simulate water effect:
0.0 fps, no movement of scroll:
Bennu - 110 fps
092 - 36 fps
If you pause the game, all processes are frozen and an alpha covers the entire screen:
Bennu - 800 fps
092 - 15 fps
** This is where it makes me suspect that this Fenix 092 rendering the entire screen and always does well to use dump and restore.
With movement of scroll:
Bennu - 64 fps
092 - 24 fps
SOUND
Bennu lose between 5 to 8% of its performance when using 44kHz instead of 22KHz or no errors in the sound choppy tested WAV / OGG.
092 seems to have problems playing the sound when the resource is high, use a bit 22KHz solves the issue of choppy.
Greetings