Article View: borland.public.cppbuilder.nativeapi
Article #1748Re: Multi-thread OR Event-based?
From: Jonathan Benedicto
Date: Wed, 13 Jun 2007 18:26
Date: Wed, 13 Jun 2007 18:26
28 lines
2206 bytes
2206 bytes
Robert G. Hoover wrote: > I switched from SetDIBitsToDevice() to DrawDibDraw() because of an > earlier discussion about "thread-safe" video routines. There seems to be > no improvement in execution. I've been doing a little research on this, and it seems that I may be wrong. In tests, StretchDIBits and DrawDibDraw both worked in a multi-threaded situation. So, I'd suggest using StretchDIBits. > And to make matters worse, all my programs run flawlessly on slower > machines. Is it possible that "we" have crossed a yield threshold where > the processors are running faster than WinXP can manage? "Windows XP was > not originally designed to support performance states on multiprocessor > configurations" (http://support.microsoft.com/kb/896256/en-us) No - I have a dual-core, and everything works perfectly. It is most likely that you're running into multi-threading issues, causing your programs to behave erratically. > Also, the DualCore runs 10x slower on the frame rate, possibly > indicating that the 2 processors are fighting over the same memory space? You could be having memory problems, but without seeing the code, it is hard to say. Jon
Technical Details
Message-ID:
<467036f7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46701cfb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,27bec389d3c536e6 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Jonathan Benedicto" <invalid@nobody.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46701cfb@newsgroups.borland.com> In-Reply-To: <46701cfb@newsgroups.borland.com> Subject: Re: Multi-thread OR Event-based? Date: Wed, 13 Jun 2007 14:26:14 -0400 Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16386 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386 NNTP-Posting-Host: 74.115.18.89 Message-ID: <467036f7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1181759223 74.115.18.89 (13 Jun 2007 11:27:03 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail