🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #637

Re: Drawing Speed

#637
From: Ralph Brown
Date: Thu, 15 Nov 1990 21:36
22 lines
1214 bytes
In article <5787@hsv3.UUCP>, jls@hsv3.UUCP (James Seidman) writes:
> One thing which might be even faster than this (but maybe not...) is to
> use FillRect() instead of Rectangle()...

Using rectangles including filling the structure took 33 Sec. about
the same as Rectangle.

The problem with rectangles is that they don't work for diagonals, arcs,
etc. However I did try polygon regions, for a horizontal rectangle
(defined with CreatePolygonRgn I got:

Creating and destroying the region consisting of the
         entire line each time                          - 528 Sec.

Just creating it once and reusing it (Cheating)         -  33 Sec.

Creating a 4x4 region once, doing OffsetRgn to do the
         complete lines (SetViewportOrg same).          - 947 Sec.

Thanks, keep those cards and letters coming,

        Ralph
Technical Details
Message-ID: <321@pcad.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pcad!rob
References: <319@pcad.UUCP> <5787@hsv3.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pcad!rob
From: rob@pcad.UUCP (Ralph Brown)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Drawing Speed
Summary: No joy
Message-ID: <321@pcad.UUCP>
Date: 15 Nov 90 21:36:20 GMT
References: <319@pcad.UUCP> <5787@hsv3.UUCP>
Organization: Personal CAD Systems, Westford, MA
Lines: 22