flat assembler
Message board for the users of flat assembler.

Index > Windows > what's faster to out memory to screen in windows?

Author
Thread Post new topic Reply to topic
Zetus



Joined: 03 Jun 2004
Posts: 37
Zetus
need: out true color raw bitmap from memory to window.
methods:

1. DirectDraw CopySurface
2. OpenGL DrawBitmap
3....?

what's faster/better?
Post 22 Sep 2004, 04:50
View user's profile Send private message ICQ Number Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
Zetus wrote:
need: out true color raw bitmap from memory to window.
methods:

1. DirectDraw CopySurface
2. OpenGL DrawBitmap
3....?

what's faster/better?


I 'd recommend you opengl, it has many advantages.
i think it uses hardware acceleration on my system too, so maeby that's the reason it is faster for me. and i think it is better.
you should make a benchmark on a few systems and then you could notice differences between speeds.

MATRIX
Post 22 Sep 2004, 09:43
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
DirectDraw is more likely to have good hardware acceleration than OpenGL - especially a lot of the older cards have poor or no GL support. GDI blit isn't too bad either.
Post 22 Sep 2004, 14:42
View user's profile Send private message Visit poster's website Reply with quote
Zetus



Joined: 03 Jun 2004
Posts: 37
Zetus
tried OpenGl:
very good with transparences/colorisation
very bad with vcards below GeForce...

Sometimes I need out -256color- bitmap=entire screen 800x600 or 1024x768. This is really slow, more slow than from DOS vesa functions.

How it be possible speed-up?
I do:

1. get each color from bitmap
2. form true color 3xbitmap from palette table
3. out this bitmap with oGL.

very slow...

but oGl function "outBitmapIndexed (or same name)" is more slow..
Post 23 Sep 2004, 10:19
View user's profile Send private message ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.