PdCreateOffscreenContext args and speed issue

Hi !

The docs says “ImageType must currently be 0 to have the image type defined
by the current video mode”. Is there any solution to create offscreen
context ImageType other than default desktop bpp ?

And I have speed issue, when testing output with PhImage_t (with shared
memory, using PgDrawPhImage() to update whole image ) and output with
offscreen context (using PgContextBlitArea() to update whole image), the
first method with PhImage_t (with shared memory) is quite faster then
offscreen method (~100fps vs ~80fps). Is that normal or I using something
wrong ?

I’m testing this issue on two video boards: TNT2 Pro 32Mb and Savage4 8Mb
with 1024x768x32bpp on both boards. On TNT2 board both methods almost equal,
but in Savage4 the first method is faster. I’m consider all my life the
offscreen method is fastest method then others.


Thanks !

NVidia and S3 drivers don’t use any hardware acceleration. So
blitting in them is equal of memory copying.

Mike Gorchak <mike@malva.ua.remove.this.for.no.spam> ÓÏÏÂÝÉÌ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ:adhigk$8lm$1@inn.qnx.com

Hi !

The docs says “ImageType must currently be 0 to have the image type
defined
by the current video mode”. Is there any solution to create offscreen
context ImageType other than default desktop bpp ?

And I have speed issue, when testing output with PhImage_t (with shared
memory, using PgDrawPhImage() to update whole image ) and output with
offscreen context (using PgContextBlitArea() to update whole image), the
first method with PhImage_t (with shared memory) is quite faster then
offscreen method (~100fps vs ~80fps). Is that normal or I using something
wrong ?

I’m testing this issue on two video boards: TNT2 Pro 32Mb and Savage4 8Mb
with 1024x768x32bpp on both boards. On TNT2 board both methods almost
equal,
but in Savage4 the first method is faster. I’m consider all my life the
offscreen method is fastest method then others.


Thanks !

Hi !

NVidia and S3 drivers don’t use any hardware acceleration. So
blitting in them is equal of memory copying.

So, what that information from ? Are you sure ? Did you want to say, the S3,
nVidia drivers doesn’t use the accs Blit, Overlay, etc ??? Maybe absent some
“hardware acceleration” but not “any hardware acceleration” ???

I have tested these cards for different types of drawing. But didn’t notice
any hardware acceleration. Your can do same. Read the
article about blitting in QDN and run test example. There must be difference
in time execution between drawing type 2 and 3 equal to 10-20 times for HA.
On Radeon card that works fine, not on S3 and
NVidia.

Mike Gorchak <mike@malva.ua.remove.this.for.no.spam> ÓÏÏÂÝÉÌ × ÎÏ×ÏÓÔÑÈ
ÓÌÅÄÕÀÝÅÅ:afh513$j7g$1@inn.qnx.com

Hi !

NVidia and S3 drivers don’t use any hardware acceleration. So
blitting in them is equal of memory copying.

So, what that information from ? Are you sure ? Did you want to say, the
S3,
nVidia drivers doesn’t use the accs Blit, Overlay, etc ??? Maybe absent
some
“hardware acceleration” but not “any hardware acceleration” ???