GrabImage speed

BlitzMax Forums/BlitzMax Programming/GrabImage speed

Brucey(Posted 2004) [#1]
Is it reasonable to expect a GrabImage of a 1024x768 screen to take 2.5 seconds?

Local image:TImage = CreateImage(1024, 768)
GrabImage(image, 0, 0)

I've also noticed that loading a jpg of the same dimension takes about the same amount of time.

Perhaps it's a processor thumping action that shows up my 867mhz powerbook...

:o)


Dreamora(Posted 2004) [#2]
Yes it is reasonable.

Image are not meant for realtime stuff but beeing static and untouched.
If you do a GrabImage GrabPixmap is processed and the result is converted to an image which is very slow.

Use GrabPixmap and operate on the Pixmap, runs nearly in realtime :)


ImaginaryHuman(Posted 2004) [#3]
Yah, here I found that grabbing images from the backbuffer seemed kinda slow.