This site is no longer active and is available for archival purposes only. Registration and login is disabled.

EasyCe on EM-500 (buffer)


EasyCe on EM-500 (buffer)

Postby 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
User avatar
boris_fr
pm Member
 
Posts: 13
Joined: Sep 26, 2001 @ 3:57pm
Location: France


Re: EasyCe on EM-500 (buffer)

Postby Phantom » Sep 26, 2001 @ 7:12pm

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.
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Return to Phantom's Forum


Sort


Forum Description

Discuss any of Phantom's projects here (Operation Nutcracker, etc.)

Moderators:

sponge, RICoder, Phantom

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron