Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by rikkus on Thursday March 23, 2017 @11:37AM
(#13940687)
I've made clocks before, and tried to either have them woken up when it's (almost) time to update - or have them sleep long enough that it'll be (almost) time to update. Only seems polite.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by nihonium on Thursday March 23, 2017 @11:16AM
(#13940446)
On the other hand, iPhone's "Clock" app has an icon that shows the correct time with a super smooth seconds indicator. Which doesn't drain the battery.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by RussianCow on Thursday March 23, 2017 @11:18AM
(#13940462)
It probably does drain the battery if you leave it on the screen for a while. They can get away with it because people usually aren't looking at their app icons for extended periods of time.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by mschaef on Thursday March 23, 2017 @01:39PM
(#13942046)
The Windows 95 optimization related to the blinking clock making it difficult to page code out... which was very important on systems at the minimum 4MB RAM required by Windows 95.
I suspect that iPhone's "Clock" app would have difficulties both with smoothness and battery life if constrained to 4MB of RAM and paging...
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by voxic11 on Thursday March 23, 2017 @11:17AM
(#13940461)
How fast does it run on 1995 hardware though?
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by jbmorgado on Thursday March 23, 2017 @11:29AM
(#13940601)
Pretty sure any sane software implementation of a simple seconds pointer would easily update faster than 1 Hz while using little to negligible CPU time in a Desktop processor from the 90's and onwards.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by mschaef on Thursday March 23, 2017 @02:14PM
(#13942461)
The Windows 1.0 clock (1988) had a 1Hz second sweep hand that ran on a 4.77MHz 8088. It's really just a couple clipped line segments each second.
http://variableghz.com/wp-content/uploads/2012/12/windows-1....
Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by jbmorgado on Thursday March 23, 2017 @03:12PM
(#13943143)
Yes, that was the point I was making. This is something computationally trivial as long as the code is written appropriately.
https://blogs.msdn.microsoft.com/oldnewthing/20031010-00/?p=...