PocketMatrix forums

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

EasyCe on EM-500 (buffer)

in easyce.cpp (near line 180), there is:
if ((!GXIsDisplayDRAMBuffer()) && (ypitch == 480))
{
// No need to do our own double buffering
imm = false;
}
but nothing is done with this...
Have you plan doing something special with this ?

Here is something I try:
in sampleapp.cpp
unsigned short* thescreenbuffer;
void main() {
thescreenbuffer = (unsigned short*)GXBeginDraw();
...graphic code...
GXEndDraw();
update();
}
and change
*(dest + x1 + y1 * 240) = color;
by
thescreenbuffer[x1+y1*256] = color;
in void plot( int x1, int y1, int color )
the value 256 is specific for the casio, cbyPitch is 512

and then, do nothing in updatedisplay()

as I hope : great boost on performance !

What do you think of this ? Could I used easyce with this change ? Have you plan yourself to do something with "imm" .

Other thing : versioning of easyce ? Each tutorial came with a change easyce.cpp...
You can modify and use EasyCE in whatever way you like. :) It would probably be a good idea to gather all good ideas and create a 'final' EasyCE, and give that a version number. By the way, I would still taylor it for every project. :) That's just the way I work.