GP2X Gp2x And Freepascal Test Program


ThomasSeban

Still Fresh
Joined
Oct 12, 2007
Messages
63
Last days i wrote an low level library for FreePascal (v2.3.1) and GP2X. I got the blitter, joystick and double buffering working. It works with GP2X MK 100 First Edition and GP2X MK 100 B with Firmware 2.0.0. Coud you test it and report me your results?

First demo is available from: http://www.seban.de/download/fpc4gp2x.zip

Usage:

X - Exit
Y - Test buttons

Volume- = disable "wait for sync"
Volume+ = enable "wait for sync"

Joystick Left - ClearScreen without blitter support
Joystick Right - ClearScreen with blitter support
Joystick Up - Show single image with transparent color
Joystick Up - Show 1000 Image per frame

In main menu and button test screen, you can create screen shots by pressing both shoulder buttons. It needs around 10 second to write, the battery led will be on during this time.

Second
The second demo uses sdl for loading images and music. There is one big sprite, which coud moved around, nothing more. The sprite is 700x800 Pixel large and blitted manually.

With X you can exit the demo.

http://www.seban.de/download/memtest.zip

This is only for testing, don't expect too much.

Thomas

PS.: Graphics and sound not(!) done by me, i take them from my harddisk.

Main menu
fpc4gp2x_main.jpg


1000 sprites
fpc4gp2x_blit.jpg


Button testing
fpc4gp2x_button.jpg
 
Good ...as pascal is nice for me...

So here are my results :
First both prog works on my F200 (firm 4.1.1 ) .

First demo result .............
(VSync Off ):
L) Average ms per frame 5.0910
R ) Average ms per frame 0.5391
U ) -------
D ) Average ms per frame 31.6660

(VSync On ):
L ) Average ms per frame 15.6703
R ) Average ms per frame 15.6695
U ) ------
D ) Average ms per frame 46.1289

All buttons work....

Second demo result :

FPS = 46-50 (VSync on )
FPS = 324 ( VSync Off )
 
@Farox: Thanks for detailed report.

Working on:
F100 First Edition (firm 2.0.0)
F100 MK B (firm 2.0.0)
F200 (firm 4.1.1)

I have more FPS with enabled v-sync on my F100 First Edition
First sample : 35.5 ms
Second: 83 FPS

I know, they have changed the display, but replaced with an slower on?

Thomas
 
Back
Top