PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Yet another 3d test

I keeping with what seems to be a current theme, I have a 3d test that I would like to get feedback on. I have written a few functions to allow PocketGL to work with gapidraw. Basically I copy the framebuffer to gd before doing a flip. The purpose, of course, is to allow using gd for the 2d stuff.

The demos can be downlaoded from http://www.intuitex.com/download/pocketgl-gd.zip (1.1 meg). Create a pocketgl directory in the root of the ppc and add the contents of the zip.

There are two lots of demos.

The DemoX.exe ones are the original pocketgl demos. The GdDemoX.exe ones have been modified to use gapidraw.

One my Toshiba e570, there is virtually no difference at low framerates (Demo10.exe runs at 13fpm either way) but at higher framerates the gd ones run slower (Demo4.exe runs at 41/51).

I'd like to hear framerates from other machines, esp ipaqs and xscales.

Ta
I think the only devices you will see a performance improvement on are those that require a chunky blit to VRAM (e740, etc). When PocketGL does its gapi blit it also clears the z-buffer and color values. So your best bet is to modify the flush routines to meet whatever contortions are required by the hardware.

Interestingly, I performed a similar test yesterday, using GapiDraw to do the final blit for Varium on an Axim and iPaq 3630. Performance dropped by 5 FPS with GapiDraw on both - and my buffers are not hybrid color & depth like with PocketGL - they are just straight RGB565.

However, that required an extra blit from my buffer to a surface buffer as obtained from GetBuffer. So instead I may try obtaining a surface from GapiDraw and do the 3D rendering directly to that.

If this helps performance (compared to my Gapi blits), then I would request the creation of a 'GapiDraw Lite', that would only be capable of creating surfaces and blitting them to the hardware. At 350k, the GapiDraw DLL is larger than my 3D engine and external DLLs combined. :) I surmise it is because of embedded fonts and the like.

Dan East
Jornada 568

gddemo4 - landscape 43 portrait 40

gddemo6 - landscape 27 portrait 26

gddemo8 - landscape 23 portrait 25

gddemo10 - landscape 15 portrait 24

gddemo12 - landscape 17 portrait 21


demo2 - 52 (Portrait)

demo4 - 50 (Portrait)

demo6 - 31 (Portrait)

demo8 - 27 (landscape)

demo10 - 18 (landscape)

demo12 - 21 (landscape)
I'm not looking for performance enhancements but productivity enhancements. gd is much easier to use for 2d operations. Given my c++ ability (or lack thereoff), that is good thing :-).