TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Windows Timer Resolution: Megawatts Wasted

157 点作者 ceeK将近 12 年前

7 条评论

gioele将近 12 年前
In the meantime, Linux has (by default) an adaptable timer and will soon be fully tickless [1]. In other words there will be no fixed timer and the OS will calculate when the next wake-up should be scheduled and sleep until that time (or until an interrupt comes).<p>At the same time, PowerTOP [2] will nicely show you which programs or drivers are responsible for waking up the computer and estimate how much power each program is consuming.<p>[1] <a href="https://lwn.net/Articles/549580/" rel="nofollow">https:&#x2F;&#x2F;lwn.net&#x2F;Articles&#x2F;549580&#x2F;</a> [2] <a href="https://01.org/powertop/" rel="nofollow">https:&#x2F;&#x2F;01.org&#x2F;powertop&#x2F;</a>
评论 #6017894 未加载
评论 #6018028 未加载
评论 #6019282 未加载
jcampbell1将近 12 年前
This is an interesting post. jQuery was fixed to use 13ms as the minimum animation interval a some time ago. This seems like a legit Crome bug to file as the interval should be more deterministic. Chrome shouldn&#x27;t take a 1ms tick unless it really needs it.<p>I wonder how much javascript code uses setTimeout(x,0) to push code to the end of the run loop.
评论 #6017397 未加载
评论 #6018337 未加载
评论 #6017328 未加载
tfigment将近 12 年前
Interesting. I had clockres on my machine but never bothered to learn what it does. I&#x27;ve used that in code that I wanted a better timer but ended up using QueryPerformanceCounter&#x2F;Frequency and rolling my own timer class but that can be a bigger pain than just using the timer.<p>On my machine, I got similar settings and found chrome being the sole offender which is probably the worst offender in many ways. Firefox and IE were clean so Google is the outlier and given I always have Chrome browser open somewhere while SQL or devenv is not always open, I suppose that&#x27;s suboptimal wonder if they will change it.
br1将近 12 年前
Macs have a similar issue. Unexpected programs activate the dedicated GPU. Skype and twitter used to do this. Power users run special utilities to force the dedicated GPU off, but the normal user has no idea that his Mac battery won&#x27;t last.<p>In my PC the programs raising the resolution are gtalk, chrome and skype. I run visual studio and sql server but they don&#x27;t show up in powercfg.<p>quartz.dll is from DirectShow. A multimedia component is expected to requiere more resolution. The fault is in the program calling into DirectShow.
评论 #6019656 未加载
dfc将近 12 年前
<i>&quot;Another common culprit on my machine is sqlservr.exe. I think this was installed by Visual Studio but I’m not sure. I’m not sure if it is being used or not.&quot;</i><p>Is this attitude still prevalent in the windows community? I thought things had improved on that front.<p>Its worth pointing out that &quot;the highest frequency wins&quot; is not an example of &quot;tragedy of the commons.&quot;
评论 #6017555 未加载
评论 #6017897 未加载
solox3将近 12 年前
Like the author says, Megawatt is a measurement of energy wasted per second.<p>If we take his claim that 10 MW is being wasted, then the energy wasted at 10 MJs⁻¹ over a year is the energy of 5 small atomic bombs.<p><a href="http://www.wolframalpha.com/input/?i=10MW+times+a+year" rel="nofollow">http:&#x2F;&#x2F;www.wolframalpha.com&#x2F;input&#x2F;?i=10MW+times+a+year</a>
评论 #6018569 未加载
评论 #6018053 未加载
rfatnabayeff将近 12 年前
Author provides source code using non-monospace (!) slanted (!!!) font. I would have wasted a damn gigawatt to unsee that.
评论 #6017988 未加载