Page 1 of 1

PostPosted: Wed May 07, 2003 3:02 pm
by awschwab
Joe:

Are the new screen buffers of PocketC 6 compatible with PToolbox buffers? That is, can I mix the functions, using SaveBuf(int record) on one of Jeremy's buffers? If I'm using PToolboxlib anyway, is there a performance difference? Or are you waiting for someone to check these things out and report them here? I haven't had time to program lately, but hope to bring my stuff up to date soon.

PostPosted: Wed May 07, 2003 3:22 pm
by jstadolnik
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Are the new screen buffers of PocketC 6 compatible with PToolbox buffers?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

They're pretty much separate things.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
That is, can I mix the functions, using SaveBuf(int record) on one of Jeremy's buffers?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

SaveBuf & RestoreBuf will probably work with the new buffer scheme for OS3.5 and up, but not for earlier OS versions.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
If I'm using PToolboxlib anyway, is there a performance difference?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

I would suspect that PocketC's new buffer access is a hair faster because it doesn't have the overhead of calling through a native library. Though I haven't confirmed this, I would expect a very small difference.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
Or are you waiting for someone to check these things out and report them here?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

I haven't done any testing on this. However, if you need grayscale support on pre-OS3.5 devices you'll need to stick with the PToolboxLib, as PocketC doesn't support it.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm