by boris_fr » Sep 26, 2001 @ 3:57pm
in easyce.cpp (near line 180), there is:<br>if ((!GXIsDisplayDRAMBuffer()) && (ypitch == 480)) <br>{<br>// No need to do our own double buffering<br>imm = false;<br>}<br>but nothing is done with this...<br>Have you plan doing something special with this ?<br><br>Here is something I try:<br>in sampleapp.cpp<br>unsigned short* thescreenbuffer;<br>void main() {<br> thescreenbuffer = (unsigned short*)GXBeginDraw();<br>...graphic code...<br> GXEndDraw();<br> update();<br>}<br>and change<br>*(dest + x1 + y1 * 240) = color;<br>by<br>thescreenbuffer[x1+y1*256] = color;<br>in void plot( int x1, int y1, int color )<br>the value 256 is specific for the casio, cbyPitch is 512<br><br>and then, do nothing in updatedisplay()<br><br>as I hope : great boost on performance !<br><br>What do you think of this ? Could I used easyce with this change ? Have you plan yourself to do something with "imm" .<br><br>Other thing : versioning of easyce ? Each tutorial came with a change easyce.cpp...
Boris