Skip to content
Tcl Source Code Artifact [d9d614a4d0]
Login

Artifact [d9d614a4d0]

Artifact d9d614a4d0662c2d573418622db9ed041f94a8c1:

Ticket change [d9d614a4d0] - Ticket [1353858fffffffff|1353858fff] <i>windows: timing granularity is poor on many systems</i> status still Open with 4 other changes by kennykb on 2005-11-11 21:38:57.
D 2005-11-11T21:38:57
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\nMatt,\n\nI'm\snot\squite\swilling\syet\sto\sgive\sup\son\sthe\s\nperformance\scounter\s-\ssimply\sbecause\sit's\s\nthe\sonly\stiming\sreference\swith\ssub-millisecond\s\nprecision\sthat\swe\shave.\s\sAs\sI\sread\syour\spatch,\s\nit\srolls\sback\sto\sa\sstate\swhere\s\n[clock\sclicks\s-microseconds]\sreturns\ssomething\s\nprecise\sonly\sto\sthe\smillisecond\s-\sand\smoreover,\s\non\smost\smachines,\saccurate\sonly\sto\sthe\svideo\s\nframe.\s\sFor\sprofiling,\sthat's\sa\shorrible\sprice\sto\spay.\n\nI'm\smost\sdefinitely\swilling\s-\sindeed,\seager\s-\sto\nadd\sthe\smultimedia\stimer\sapproach\son\ssystems\nwhere\sthe\sperformance\scounter\sdoes\snot\spass\nthe\stests.\s\sDoing\sthat\swould\sat\sleast\sgive\sus\sa\nconsistent\stiming\sreference\son\sthose\smachines.\n\nBut\sI'm\smore\sconcerned\sabout\sthe\sMP\smachines\nthat\s"fail"\sthe\stests.\sMy\sunderstanding\sof\sthe\nsituation\sis\sthat\smachines\son\swhich\sthe\sperformance\ncounter\sis\sunreliable\sare\sactually\srare,\sand\sthe\stests\nare\squite\sover-conservative--\sexcluding\sall\sMP\nmachines\sexcept\sfor\sGenuineIntel\shyperthread.\nI\ssuspect\sthat\sa\sfew\sextra\stests\sfor\smachines\son\swhich\nthe\sperf\scounter\sis\s"safe"\smay\swell\scover\syour\nproduction\smachines.\s\sI've\sactually\sencountered\nonly\sa\scouple\sof\smachines\son\swhich\sthe\svendor\sgot\nit\swrong,\sand\sthey\sare\srather\santiques\snow.\n\nHave\syou\stried\ssimply\spatching\sout\sthe\schecks\sfor\nperf\scounter\sfrequency\s(the\sblock\sof\scode\sconditioned\non\s"#if\s!defined(_WIN64)")?\s\sIf\sso,\swhat\swere\sthe\sresults?\nMy\ssuspicion\sis\sthat\son\smodern\smachines,\sthat\smay\swell\nJust\sWork\s-\sand\sin\sthat\scase,\swe'd\swin\ssimply\sby\smaking\nthe\schecks\swithin\sthat\sblock\smore\spermissive.\n
J login kennykb
J mimetype text/plain
J username kennykb
K 1353858fffffffffffffffffffffffffffffffff
U kennykb
Z 8b35d3b498873f77203f1c57c173f863