Article View: borland.public.cppbuilder.nativeapi
Article #15202Re: SetEventTimer routine holds TThread task?
From: Phuoc Can HUA
Date: Fri, 11 Jul 2003 01:12
Date: Fri, 11 Jul 2003 01:12
27 lines
2220 bytes
2220 bytes
On Wed, 09 Jul 2003 09:13:43 +1000, Phuoc Can HUA <home}a+t{huaonline.com>
wrote:
>> ShowLyrLine() in LocalDisplay::Refresh. It's calling some 'heavy'
>> graphic
> operations (takes ~20ms). Since the MIDI is running in a seperate thread
> I'm hoping that the graphic operations won't hold the song. I guess it
> might be the system screen refresh is holding it.
I was wrong. It was not the painting holding the TThread. After I removed
those lines drawing on PaintBox it's still the same problem. So, it must be
those graphic operations (which is not running in the same thread) :-(
Now, I use TTimer instead of timeSetEvent(). The music is playing properly.
Of course TTimer is less precise. In my case, I can accept a little bit
delay in the graphic (have no choice).
Any suggestion to optimize the graphic routine? BTW, some Copy operations
are doing outline the text. Is there a font property doing that?
Phuoc Can HUA
--
_/\__/\__/\__/\__/\__/\_
www.huaonline.com
My Homepage is my Castle
Technical Details
Message-ID:
<oprr4ga2ksbq7az6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<oprrwu2pcgbq7az6@newsgroups.borland.com> <3f08d164@newsgroups.borland.com> <oprrxfa6dpbq7az6@newsgroups.borland.com> <3f09295c@newsgroups.borland.com> <oprr0lg5y5bq7az6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a436a021eb0521f3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-10 18:16:40 PST
Date: Fri, 11 Jul 2003 11:12:28 +1000
Subject: Re: SetEventTimer routine holds TThread task?
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Newsgroups: borland.public.cppbuilder.nativeapi
References: <oprrwu2pcgbq7az6@newsgroups.borland.com> <3f08d164@newsgroups.borland.com> <oprrxfa6dpbq7az6@newsgroups.borland.com> <3f09295c@newsgroups.borland.com> <oprr0lg5y5bq7az6@newsgroups.borland.com>
From: Phuoc Can HUA <home}a+t{huaonline.com>
MIME-Version: 1.0
Message-ID: <oprr4ga2ksbq7az6@newsgroups.borland.com>
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 210.9.89.210
X-Trace: newsgroups.borland.com 1057886143 210.9.89.210 (10 Jul 2003 18:15:43 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail