realbasic-nug
[Top] [All Lists]

Re: Picture blending speeds

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Picture blending speeds
From: Brad Hutchings <brad at componentx dot com>
Date: Wed, 12 May 2004 00:12:22 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
References: <8F1D7DA9-A3C9-11D8-8E4D-003065D65A8C at cs dot otago dot ac dot nz>
WOW, thanks Dave. Your check is in the mail. Just kidding everyone.

A point of clarification on the Win XP times. Plugins do badly here because a locking call in the plugin API actually copies the picture. For CXG_Composite, there are 3 extraneous copies per call, and that accounts for I'd guess 85+% of the execution time for the image size you used. The bug has been reported and a quick fix requested. But you can still sign on:

http://support.realsoftware.com/feedback/viewreport.php? reportid=jbdaqqnd

Anyway, the results are quite flattering. I feel like Ruslan now!

-Brad
--
Brad Hutchings
brad at ComponentX dot com

On May 11, 2004, at 9:05 PM, Dave Robertson wrote:

I'm working on an app that needs to blend large images so I tested some of the methods available to see which was fastest.
For anyone interested here are the results:

The test was to draw a 1024 x 527 picture onto another picture of the same size, with 50% transparency. The times are typical times over several trials. The times are measured using the Microseconds function.


                                                                OSX 10.3.3      
        Win XP
                                                                466 Mhz G4      
        1GHz PIII

DrawPicture                                             610 mSec                
        150 mSec
DrawPicture useOldRenderer=True         156 mSec                        n/a
Einhugur PictureEffects 3.1 Blend               270 mSec                        
510 mSec
Component X Graphics Composite            55 msec                       270 mSec
Micono RGBSurface 1.6.0                 245 mSec                        900 msec





Dave Robertson

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>