November 08, 2012
I'm using the number of milliseconds since midnight as a way to randomize the choice of image to display on the top. But the big question mark has always been how granular that was.
Used to be, back in the days of Win95, it actually changed at 30 hz. So it would increment by 33 (or 34). But is that still true? Today I decided to find out. And I need your help, below the fold.
UPDATE: Chooser version 28, 20121108. Total number of images remains the same at 1772. But the way it chooses the image to display is different, and it should give you a wider variety of pictures. Subjectively it seems to for me, but that's not really scientific.
Also, I used to have a place you could click to get a new image, but it seemed to have a slow memory leak so I took it out. I figured out where the leak was and fixed it. So now, if you mouse-hover the upper left corner, you get the info screen. If you click it, you get a new image.
This flash runs a loop five times. Each loop waits until the clock changes, stores the clock value, then waits until it changes again, and reports how many milliseconds that took. On my Win7-64 system with IE9, I was very surprised to see that it is incrementing by 1. What I see is "1 1 1 1 1".
If you see anything different than that, please tell me what it is, and tell me what OS and browser you're using. The browser probably doesn't matter; this is probably an OS issue, but I could be wrong.
UPDATE: Thank you, everyone. I've got enough feedback now.
Posted by: Steven Den Beste in Site Stuff at
11:12 AM
| Comments (17)
| Add Comment
Post contains 291 words, total size 2 kb.
15 16 16 16 15. Opera12 on WinXP Professional 64-bit.
(Protip: don't use WinXP 64-bit. Nobody makes drivers for it.)
Posted by: Mikeski at November 08, 2012 11:24 AM (1bPWv)
Apparently the clock on XP runs 60 hz. I expected some version would do that. I wonder whether this was a Vista change, or a Win7 change? Since no one in their right mind runs Vista any longer, I probably can't find out.
I'm not actually certain the clock rate was 30 hz on Win 95; it may have been 60 back then, too.
Posted by: Steven Den Beste at November 08, 2012 11:29 AM (+rSRq)
In my WinXP virtual machine on my Win7 computer, it seems the clock is 100 hz. It changes by 10 milliseconds.
Win7-32 (Saten) also changes by 16, i.e. 60 hz.
Posted by: Steven Den Beste at November 08, 2012 11:33 AM (+rSRq)
Same machine, Chrome: most common result by far is 15 followed by a bunch of 10/11, with very occasional variations like "13 11 11 9 8".
-j
Posted by: J Greely at November 08, 2012 12:00 PM (fpXGN)
Chrome 23.0.1271.64 on the same machine: plenty of variation. I've seen 4 6 6 6 150, 7 7 6 5 16, 5 5 97 6 6, 5 5 5 4 6, and 7 6 5 6 5 in five (re)loads of the page. Overall things seem to cluster around 5 and 6.
Posted by: Chris Siebenmann at November 08, 2012 12:09 PM (YmdZq)
I think I'll make it so that Chooser directly measure it. Especially since I already have the code.
Posted by: Steven Den Beste at November 08, 2012 12:22 PM (+rSRq)
Posted by: metaphysician at November 08, 2012 12:59 PM (3GCAl)
Firefox 16.0.2:
15 16 16 16 15 (on 3 separate reloads; can get some 32s after a few, but that might just be more browser loading lag)
Chrome 22.0.1999.94:
1 1 1 1 1
2 2 2 2 2
3 3 2 2 2
So, it might be Flash interacting on top of the broswer, on top of the OS. Fun times!

Oh yeah, and, do I spy, with my little eye, a Strike Witches Movie subtitled release from Underwater?
Posted by: sqa at November 08, 2012 01:42 PM (iWwXY)
Posted by: Jaked at November 08, 2012 01:46 PM (Td8PJ)
Posted by: Steven Den Beste at November 08, 2012 01:52 PM (+rSRq)
Oh yeah, and, do I spy, with my little eye, a Strike Witches Movie subtitled release from Underwater?
Finally! About damned time! (Downloading now!)
Posted by: Steven Den Beste at November 08, 2012 01:54 PM (+rSRq)
And, yeah, when I saw that up there, I thought you'd be happy.
Posted by: sqa at November 08, 2012 02:25 PM (iWwXY)
Posted by: Doyen at November 08, 2012 02:33 PM (nV9J4)
Doyen, sorry. That appears to be a Firefox strangeness and I have no idea what the problem is or how to fix it.
That function isn't exactly critical, and I don't intend to chase it.
Posted by: Steven Den Beste at November 08, 2012 03:24 PM (+rSRq)
Posted by: Steven Den Beste at November 08, 2012 03:26 PM (+rSRq)
Posted by: RickC at November 08, 2012 05:41 PM (WQ6Vb)
Folks, you don't need to tell me any more about that bug, please.
Posted by: Steven Den Beste at November 08, 2012 05:45 PM (+rSRq)
Enclose all spoilers in spoiler tags:
[spoiler]your spoiler here[/spoiler]
Spoilers which are not properly tagged will be ruthlessly deleted on sight.
Also, I hate unsolicited suggestions and advice. (Even when you think you're being funny.)
At Chizumatic, we take pride in being incomplete, incorrect, inconsistent, and unfair. We do all of them deliberately.
How to put links in your comment
Comments are disabled. Post is locked.20 queries taking 0.0106 seconds, 34 records returned.
Powered by Minx 1.1.6c-pink.