🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #8

Re: bitblt copy speed problem

#8
From: Peter Haas
Date: Wed, 27 Nov 2002 15:57
27 lines
2125 bytes
Hi Simon,

Simon wrote in <3de4e50a$1@newsgroups.borland.com>:
> When I copy this bitmap (640x480 pixels) from memory to memory, it
> takes about 220ms!

I don't think, that this is a bitblt problem.

How you store the bitmap? How do you get the needed handles?

> Or is there a other way of doing that?  I was thinking about copying
> memory directly from the first tbitmap to the second without the bitblt
> function, but a I wonder if this is a godd idea.

If you use DIBs, with identical headers and copy the full bitmap, then
you can copy the pixel memory directly.


BTW: How you have measure the time? GetTickCount is not usable to do
this.


Your problem is mainly a graphic problem. I have crosspost to
borland.public.delphi.graphics and set a followup. A anwer on this
posting should show in the graphic newsgroup.

Bye Peter.
Technical Details
Message-ID: <3de4eb6f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!uio.no!news01.chello.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.aft-werdohl.de!aft1.crw.net!newsgroups.borland.com!not-for-mail
References: <3de4e50a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a296,c9c6edbd41456e3a,start
X-Google-Attributes: gid10a296,public
X-Google-Thread: f94dd,c9c6edbd41456e3a,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2002-11-27 08:07:49 PST
X-Posting-Agent: Hamster/1.3.23.4
From: Peter Haas <PeterJHaas@t-online.de>
Newsgroups: borland.public.delphi.nativeapi,borland.public.delphi.graphics
Subject: Re: bitblt copy speed problem
Followup-To: borland.public.delphi.graphics
Date: Wed, 27 Nov 2002 16:57:30 +0100
References: <3de4e50a$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.157.76.107
Message-ID: <3de4eb6f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038412655 62.157.76.107 (27 Nov 2002 07:57:35 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!uio.no!news01.chello.no!newsfeed1.e.nsc.no!nsc.no!nextra.com!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.aft-werdohl.de!aft1.crw.net!newsgroups.borland.com!not-for-mail
X-Received-Date: Wed, 27 Nov 2002 17:05:09 MET (news01.chello.no)