<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx</link><description>It means the program is spending too much time drawing to the screen and not enough time doing actual work.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535459</link><pubDate>Mon, 20 Feb 2006 18:33:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535459</guid><dc:creator>8</dc:creator><description>Suppose progress is undetermined (for instance when transferring a file of unknown size), how many milliseconds would you pass the progress bar control with PBM_SETMARQUEE?</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535493</link><pubDate>Mon, 20 Feb 2006 19:12:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535493</guid><dc:creator>Stu</dc:creator><description>I remember old install programs that used to display the name of every file being copied.&lt;br&gt;&lt;br&gt;I was thought the install ran faster when it was minimized, but I didn't think that copying even a small file could possibly be quicker that painting the file name. Is it possible that a CD-ROM file copy could be faster than Windows' font painting?</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535495</link><pubDate>Mon, 20 Feb 2006 19:13:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535495</guid><dc:creator>James</dc:creator><description>VTE (the terminal emulator behind gnome-terminal) recently had something similar done, so it updates 40 times/second max. &lt;a rel="nofollow" target="_new" href="http://mail.gnome.org/archives/performance-list/2006-February/msg00006.html"&gt;http://mail.gnome.org/archives/performance-list/2006-February/msg00006.html&lt;/a&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535499</link><pubDate>Mon, 20 Feb 2006 19:20:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535499</guid><dc:creator>8</dc:creator><description>Font rendering has been improved too. Here's a nice overview of everything new and better:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.gnome.org/~davyd/gnome-2-14/"&gt;http://www.gnome.org/~davyd/gnome-2-14/&lt;/a&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535501</link><pubDate>Mon, 20 Feb 2006 19:21:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535501</guid><dc:creator>Miles Archer</dc:creator><description>On VAX (VMS) if a system had a heavy load and was sluggish, it would seem to give your process more resources if you hit Ctrl-T frequently. Don't know if this was mere superstition or if it really worked. It's kind of the opposite of what this case, though.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535519</link><pubDate>Mon, 20 Feb 2006 19:41:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535519</guid><dc:creator>Adrian</dc:creator><description>Miles: &amp;nbsp;VMS, like many timesharing systems, would give your process a small, temporary priority boost whenever there was an interaction (like typing). &amp;nbsp;Hitting Ctrl+T probably had no direct effect, but you might get a short priority boost which gives you a few more cycles for a second or two.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535527</link><pubDate>Mon, 20 Feb 2006 19:58:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535527</guid><dc:creator>Eber Irigoyen</dc:creator><description>ah!... the Windows copy has always had this problem then!&lt;br&gt;I have noticed many times when I'm copying files, that when I click in some other window the &amp;quot;time left&amp;quot; would go, say to 15 minutes, if I click back in the &amp;quot;copying window&amp;quot; the times goes to 3 minutes, not only that, but the progress bar does seem to move faster&lt;br&gt;&lt;br&gt;is this related to the same thing?</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535575</link><pubDate>Mon, 20 Feb 2006 21:09:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535575</guid><dc:creator>Graham Bradshaw</dc:creator><description>@Eber...&lt;br&gt;&lt;br&gt;This might be because Windows gives a higher priority to the foreground window.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535640</link><pubDate>Mon, 20 Feb 2006 22:56:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535640</guid><dc:creator>asdf</dc:creator><description>On my computer, programs that do (disk) IO with a large amount of data can be sped up noticeably if you change their priority to idle. Fortunately winrar has an option for this so I don't have to keep manually setting it.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535667</link><pubDate>Mon, 20 Feb 2006 23:33:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535667</guid><dc:creator>Brian Friesen</dc:creator><description>Thanks for the explaination. &amp;nbsp;I have noticed that in the past with programs, but I assumed it was my imagination. &amp;nbsp;After all it didn't make sense how this could make some programs faster.&lt;br&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535681</link><pubDate>Tue, 21 Feb 2006 00:04:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535681</guid><dc:creator>Isaac Lin</dc:creator><description>I used to notice this while watching streaming video from ifilm.com (can't remember if I was using RealPlayer or Windows Media Player, though). The video was quite smooth while holding down the mouse button over the caption bar, and unwatchable otherwise.&lt;br&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535714</link><pubDate>Tue, 21 Feb 2006 00:57:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535714</guid><dc:creator>Adrian</dc:creator><description>Isn't this advice contrary to some of your recent posts? &amp;nbsp;Haven't you been recommending notification mechanisms rather than polling?&lt;br&gt;&lt;br&gt;I've always thought of InvalidateRect() as a notification mechansim. &amp;nbsp;It sets a flag that we need to do work when it's convenient. &amp;nbsp;The WM_PAINT message is low priority, sent when there are no other messages in the queue. &amp;nbsp;Several InvalidateRect()s can happen before the paint message is sent. &amp;nbsp;WM_PAINTs shouldn't happen at some outlandish rate.&lt;br&gt;&lt;br&gt;Can you offer a perspective that distinguishes this case (where polling is preferred) from other the other recent examples where you've argued against polling?</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535718</link><pubDate>Tue, 21 Feb 2006 01:07:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535718</guid><dc:creator>oldnewthing</dc:creator><description>Adrian: I discussed this in the last paragraph but focused on the main idea of &amp;quot;don't update too frequently&amp;quot;.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535784</link><pubDate>Tue, 21 Feb 2006 03:43:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535784</guid><dc:creator>ipoverscsi</dc:creator><description>A related question is: why does my application run faster when I wiggle the mouse over the main window? &amp;nbsp;I once had an application that would run dog slow unless you wiggled the mouse over the main screen (the application was doing some animation). &amp;nbsp;We used to say we were turning the crank to make it go faster.
&lt;div class="post"&gt;[&lt;i&gt;&lt;a href="http://blogs.msdn.com/oldnewthing/archive/2005/02/17/375307.aspx"&gt;I already discussed this&lt;/a&gt;. -Raymond&lt;/i&gt;]&lt;/div&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535831</link><pubDate>Tue, 21 Feb 2006 06:08:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535831</guid><dc:creator>Chris Adams</dc:creator><description>There's a handy OS X utility (Quartz Debug) which allows you to highlight (literally - the area being painted will be tinted yellow/red) repaints and particularly repaints which are identical to the previous contents of the painted region. Is there an equivalent for Windows?</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535835</link><pubDate>Tue, 21 Feb 2006 06:32:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535835</guid><dc:creator>asdf</dc:creator><description>Perforator: &lt;a rel="nofollow" target="_new" href="http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/wcp_tools/html/a3a04a83-2488-435b-a073-80f94dae9c04.asp"&gt;http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/wcp_tools/html/a3a04a83-2488-435b-a073-80f94dae9c04.asp&lt;/a&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535848</link><pubDate>Tue, 21 Feb 2006 07:26:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535848</guid><dc:creator>AnotherMatt</dc:creator><description>Hey Raymond,&lt;br&gt;&lt;br&gt;Great article. &amp;nbsp;I haven't noticed that programs run faster, but I have been wondering lately why it takes so long for a window to redraw itself when you hold down the mouse button as you bring it forward from behind another window. &amp;nbsp; Now I know! &amp;nbsp;Learn something new every day.&lt;br&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535857</link><pubDate>Tue, 21 Feb 2006 08:02:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535857</guid><dc:creator>ChrisR</dc:creator><description>This reminds me of a contest Korby Parnell had regarding a Visual Source Safe window that was suffering from this (&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/korbyp/archive/2004/08/31/223384.aspx"&gt;http://blogs.msdn.com/korbyp/archive/2004/08/31/223384.aspx&lt;/a&gt;).&lt;br&gt;&lt;br&gt;I submitted a sample project to make one of Source Safe's windows think the left mouse button was being held down on it's caption (and it actually worked!). &amp;nbsp;Korby did respond that he was going to send me the baseball, but I'm not sure what happened.&lt;br&gt;&lt;br&gt;Alas, it never did arrive. &amp;nbsp;It's no big deal, I just thought it was an interesting challenge.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535858</link><pubDate>Tue, 21 Feb 2006 08:03:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535858</guid><dc:creator>ChrisR</dc:creator><description>AnotherMatt: &amp;nbsp;Arrg! &amp;nbsp;I have wondered what caused that for a very long time...thanks for pointing it out!</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535860</link><pubDate>Tue, 21 Feb 2006 08:09:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535860</guid><dc:creator>zzz</dc:creator><description>Unrelated...&lt;br&gt;&lt;br&gt;Why is it that when I have direct ethernet between 2 win boxes, the copying speed (windows shares) is normal, ~10 MB/s with 100 Mbit NICs.&lt;br&gt;&lt;br&gt;Now I insert a switch in between, the speed goes to ~5 MB/s. However if I use FTP to transfer the files with the switch in between, the speed is normal, 10 MB/s again (100 Mbit).&lt;br&gt;&lt;br&gt;So that was totally unrelated but with all the smart people here, someone must have an idea for why is this so. I seriously doubt the switch is doing any less processing with the FTP packets since it's very basic model.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#535963</link><pubDate>Tue, 21 Feb 2006 14:49:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535963</guid><dc:creator>8</dc:creator><description>What if you use the broadcast address for the transfer? I couldn't quickly find a tool to do it, but you've got a compiler ;)</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536027</link><pubDate>Tue, 21 Feb 2006 17:13:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536027</guid><dc:creator>Marc Bernard</dc:creator><description>Now all you need to do is get Rico to add this tip to the .NET performance guide... &amp;nbsp;:)&lt;br&gt;&lt;br&gt;Marc&lt;br&gt;</description></item><item><title>Cover the window</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536033</link><pubDate>Tue, 21 Feb 2006 17:17:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536033</guid><dc:creator>James Risto</dc:creator><description>Can the same speedup be had by covering the window with another app's window? I guess my question really is ... are paint messages sent if the window is totally covered?</description></item><item><title>Why does my program run faster if I click and hold the caption bar</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536127</link><pubDate>Tue, 21 Feb 2006 19:44:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536127</guid><dc:creator>Tech Observer</dc:creator><description>Wow... example of how not to update status in a GUI! The Old New Thing : Why does my program run faster if I click and hold the caption bar? Sometimes, people discover...</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536145</link><pubDate>Tue, 21 Feb 2006 20:01:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536145</guid><dc:creator>thewebguy</dc:creator><description>haha this is awesome. i remember doing this on my old 386, never knew why it worked until now..</description></item><item><title>WTF?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536163</link><pubDate>Tue, 21 Feb 2006 20:30:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536163</guid><dc:creator>Leopold Porkstacker</dc:creator><description>Hmmm, doesn't seem to work on my dual G5 Mac.... no, wait, that's because it's already running fast enough, thanks to an intelligently-designed OS with NO memory leaks built-in by the &amp;quot;factory&amp;quot;.&lt;br&gt;&lt;br&gt;LOLzors</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536173</link><pubDate>Tue, 21 Feb 2006 20:38:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536173</guid><dc:creator>Maxim</dc:creator><description>Totally logical...&lt;br&gt;&lt;br&gt;The last time I saw that on my windows machine is with WinRAR.&lt;br&gt;&lt;br&gt;When extracting &amp;gt;1Go files... it takes less time to extract when running in the background than when you display the progress bar.</description></item><item><title>  Why does my program run faster if I click and hold the caption bar?   at  philcrissman.com</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536175</link><pubDate>Tue, 21 Feb 2006 20:42:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536175</guid><dc:creator>  Why does my program run faster if I click and hold the caption bar?   at  philcrissman.com</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://philcrissman.com/?p=925"&gt;http://philcrissman.com/?p=925&lt;/a&gt;</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536204</link><pubDate>Tue, 21 Feb 2006 21:06:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536204</guid><dc:creator>MacSmack</dc:creator><description>Hey Macie,&lt;br&gt;You're g5 wasn't running fast enuf so they switched it to an Intel. Time to upgrade~!</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536214</link><pubDate>Tue, 21 Feb 2006 21:14:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536214</guid><dc:creator>Leion</dc:creator><description>This means I &amp;nbsp;should minimise my programs to make it run faster....</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536232</link><pubDate>Tue, 21 Feb 2006 21:44:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536232</guid><dc:creator>Joxean Koret</dc:creator><description>&amp;gt;This means I &amp;nbsp;should minimise my programs to make it run faster.... &lt;br&gt;&lt;br&gt;No. This means the programmers needs to ignore the redraw events during a large operation. Me, as for myself, always ignore the redraw events or, at least, lock the window (LockWindow).</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536272</link><pubDate>Tue, 21 Feb 2006 22:24:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536272</guid><dc:creator>Bond, James Bond 007</dc:creator><description>I say it is all in your heads.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536302</link><pubDate>Tue, 21 Feb 2006 23:02:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536302</guid><dc:creator>lulu</dc:creator><description>What the hell is a &amp;quot;caption bar&amp;quot;??</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536338</link><pubDate>Wed, 22 Feb 2006 00:03:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536338</guid><dc:creator>me was smarte then me fall on head.</dc:creator><description>Lulu: the bar at the top that has the program name in it, right now it should say something like &amp;quot;The Old New Thing: Why does my program run faster if I click and hold the caption bar? - (the name of your browser)&amp;quot;&lt;br&gt;On the right of it there are those minimize, maximize and close buttons.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536392</link><pubDate>Wed, 22 Feb 2006 01:25:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536392</guid><dc:creator>Jansen</dc:creator><description>Well.. I foudn out somthing intresting... in Win95 and Win98, if you were trying to end a task.. and you REALLY wanted to end it (you know sometimes how you can click and it doesnt die) wel.. if you click the END TASK button... and hold the mouse button in.. It ALWAYS kills it.. it was like the magic remedy. My IT friends, and associates thought this was quite humourous and completely illogical. But then again it was software from Microsoft!!</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536485</link><pubDate>Wed, 22 Feb 2006 03:27:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536485</guid><dc:creator>Frode Børli</dc:creator><description>Shouldn't Microsoft somehow remedy this; that is - when a window is redrawing x times faster than the monitor can refresh, windows should fix it (in one way or another)?&lt;br&gt;&lt;br&gt;Or even: somebody could make a &amp;quot;windows accellerator&amp;quot; that detect too frequent redraws and respond accordingly? This would actually be a performance booster that worked!?&lt;br&gt;&lt;br&gt;Frode</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536844</link><pubDate>Wed, 22 Feb 2006 15:33:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536844</guid><dc:creator>8</dc:creator><description>&amp;gt;Can the same speedup be had by covering the window with&lt;br&gt;&amp;gt;another app's window? I guess my question really is ...&lt;br&gt;&amp;gt;are paint messages sent if the window is totally&lt;br&gt;&amp;gt;covered?&lt;br&gt;&lt;br&gt;Yes, that should do it. Also try grabbing a screenshot of a (partially) covered window. It should be black in the places where it was covered (actually the user would expect a proper screenshot, but hey...)&lt;br&gt;&lt;br&gt;&amp;gt;Shouldn't Microsoft somehow remedy this; that is - &lt;br&gt;&amp;gt;when a window is redrawing x times faster than the &lt;br&gt;&amp;gt;monitor can refresh, windows should fix it (in one &lt;br&gt;&amp;gt;way or another)?&lt;br&gt;&amp;gt;Or even: somebody could make a &amp;quot;windows accellerator&amp;quot;&lt;br&gt;&amp;gt;that detect too frequent redraws and respond &lt;br&gt;&amp;gt;accordingly? This would actually be a performance &lt;br&gt;&amp;gt;booster that worked!? &lt;br&gt;&lt;br&gt;I think that's a bad idea. It would cause overhead by itself, and the detected monitor refresh rate isn't neccisarily the real monitor refresh rate. I'm typing this in VMware, which fixes the virual monitor refresh rate to 60Hz no matter what, but it's all fake since there is no real monitor refresh rate in the VM. Whatever the actual monitor refresh rate is, is up to the host OS to determine.&lt;br&gt;&lt;br&gt;Doing so would also break benchmarking tools, which *have* to draw faster then the refresh rate, to come up with some interesting results that basically say &amp;quot;your PC is x times faster then average&amp;quot; with some nice drawings.&lt;br&gt;&lt;br&gt;You also don't want programmers to get even lazier, like &amp;quot;well, Windows will fix that for me anyway, so let's paint this in a while(1) loop&amp;quot;. Those programmers should somehow be punished -_-'.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#536878</link><pubDate>Wed, 22 Feb 2006 16:51:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:536878</guid><dc:creator>Youssef H. Wardani</dc:creator><description>I encountered a similar situation coding in Delphi and using TDBGrid.OnDrawColumnCell
&lt;br&gt;So now when I run any process that has a parent form, I use LockWindowUpdate before the process starts and after it is done.
&lt;br&gt;example:
&lt;br&gt;LockWindowUpdate (Self.Handle);
&lt;br&gt;//my code ...
&lt;br&gt;LockWindowUpdate (0);
&lt;br&gt;
&lt;div class="post"&gt;[&lt;i&gt;Remember, people, just because somebody posts a comment &lt;a href="http://blogs.msdn.com/oldnewthing/archive/2007/02/19/1716211.aspx"&gt;doesn't mean they're right&lt;/a&gt;. -Raymond&lt;/i&gt;]&lt;/div&gt;</description></item><item><title>re: Why do some programs run faster when I move the mouse?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#537270</link><pubDate>Thu, 23 Feb 2006 00:20:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:537270</guid><dc:creator>J.Marsch</dc:creator><description>Raymond:&lt;br&gt;&lt;br&gt;Your post started me wondering about another situation that I see sometimes:&lt;br&gt;&lt;br&gt;Why is it that sometimes when an application appears to be locked up, moving the mouse over it will cause it to become responsive again?&lt;br&gt;&lt;br&gt;The best example that I can think of is Visual Studio 2005.&lt;br&gt;&lt;br&gt;(this can be a little maddening because it doesn't repro 100 percent of the time, but here goes):&lt;br&gt;&lt;br&gt;Create a Web Project, and then try to debug it. &amp;nbsp;Often, VS will just seem to pause just at the point where IE should start up. &amp;nbsp;If you move your mouse over the VS window, it will become responsive again. &amp;nbsp;If you don't, it can take over a minute to get your debugger, and sometimes IE will actually time out.</description></item><item><title>Over-updating...</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#538461</link><pubDate>Fri, 24 Feb 2006 08:53:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:538461</guid><dc:creator>Eric Gunnerson's C# Compendium</dc:creator><description>Raymond writes an interesting post about how some programs run faster if you hold down the mouse. &lt;br&gt;This...</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#539134</link><pubDate>Sat, 25 Feb 2006 16:10:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:539134</guid><dc:creator>Ivan Minic</dc:creator><description>Very interesting find!</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#540720</link><pubDate>Tue, 28 Feb 2006 22:01:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:540720</guid><dc:creator>Coleman</dc:creator><description>Raymond,&lt;br&gt;&lt;br&gt;Another way to handle this is by having the thread send a registered window message to the main window. &amp;nbsp;Then the message handler would be responsible for painting or whatever. &amp;nbsp;The message handler could also decide to only repaint every 10th message or some other algorithm.</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#541386</link><pubDate>Wed, 01 Mar 2006 20:42:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:541386</guid><dc:creator>Neil</dc:creator><description>So how many paints are actually generated by the 100000 invalidates? Not 100000, I hope?</description></item><item><title>re: Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#541395</link><pubDate>Wed, 01 Mar 2006 20:50:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:541395</guid><dc:creator>oldnewthing</dc:creator><description>Neil: Add some instrumentation and find out. You don't need to ask me.</description></item><item><title>The Anthology of Interests  &amp;raquo; Blog Archive   &amp;raquo; Why does my program run faster if I click and hold the caption bar?</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#572389</link><pubDate>Mon, 10 Apr 2006 13:56:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:572389</guid><dc:creator>The Anthology of Interests  » Blog Archive   » Why does my program run faster if I click and hold the caption bar?</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://www.asis.ru/2006/04/10/why-does-my-program-run-faster-if-i-click-and-hold-the-caption-bar/"&gt;http://www.asis.ru/2006/04/10/why-does-my-program-run-faster-if-i-click-and-hold-the-caption-bar/&lt;/a&gt;</description></item><item><title>  Ха | DoItQ</title><link>http://blogs.msdn.com/oldnewthing/archive/2006/02/20/535440.aspx#1843366</link><pubDate>Fri, 09 Mar 2007 14:22:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1843366</guid><dc:creator>  Ха | DoItQ</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://doitq.ru/2006/03/20/ha/"&gt;http://doitq.ru/2006/03/20/ha/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>