round two

This commit is contained in:
Jay McCarthy 2015-09-04 09:18:16 -04:00
parent 1e6f771a88
commit 883daf4faa
4 changed files with 2650 additions and 55 deletions

View File

@ -8,17 +8,31 @@
;; The idea here is that the average gap should be about 16.6. In the ;; The idea here is that the average gap should be about 16.6. In the
;; first version, the numbers were: ;; first version, the numbers were:
;; ;;
;; [log.1]
;; 1734 Events ;; 1734 Events
;; word-evt: #294, average gap 34.903754432860495
;; word-tick: #27, average gap 43.47511643629808
;; word-output: #293, average gap 34.90750665534033
;; word-label: #293, average gap 33.786167092519264
;; word-fps: #559, average gap 17.674883442540324
;; word-event: #267, average gap 37.07471437382519 ;; word-event: #267, average gap 37.07471437382519
;; word-evt: #294, average gap 34.903754432860495
;; word-fps: #559, average gap 17.674883442540324
;; word-label: #293, average gap 33.786167092519264
;; word-output: #293, average gap 34.90750665534033
;; word-return: #1, average gap 0 ;; word-return: #1, average gap 0
;; word-tick: #27, average gap 43.47511643629808
;; ;;
;; This is really bad. The goal should be for the counts for ;; This is really bad. The goal should be for the counts for
;; word-(evt,output,label,fps) to all be the same as tick ;; word-(evt,output,label,fps) to all be the same as tick
;;
;; The second release was this:
;;
;; [log.2]
;; 844 Events
;; word-event: #179, average gap 27.584044724367978
;; word-evt: #133, average gap 37.19977916370738
;; word-fps: #133, average gap 37.19944069602273
;; word-label: #133, average gap 37.22812167080966
;; word-output: #133, average gap 40.07987097537879
;; word-return: #1, average gap 0
;; word-tick: #132, average gap 37.29275442807729
;;
(module+ main (module+ main
(require racket/runtime-path) (require racket/runtime-path)

1734
log.1 Normal file

File diff suppressed because it is too large Load Diff

844
log.2 Normal file
View File

@ -0,0 +1,844 @@
(1441372483892.687 . word-output)
(1441372484281.046 . word-label)
(1441372484285.869 . word-fps)
(1441372484285.925 . word-evt)
(1441372484286.465 . word-event)
(1441372484286.754 . word-event)
(1441372484286.831 . word-event)
(1441372484286.858 . word-event)
(1441372484286.907 . word-event)
(1441372484296.422 . word-event)
(1441372484297.841 . word-tick)
(1441372484297.965 . word-output)
(1441372484313.945 . word-label)
(1441372484315.679 . word-fps)
(1441372484315.776 . word-evt)
(1441372484315.855 . word-event)
(1441372484328.571 . word-event)
(1441372484331.133 . word-tick)
(1441372484331.176 . word-output)
(1441372484346.858 . word-label)
(1441372484347.995 . word-fps)
(1441372484348.087 . word-evt)
(1441372484363.174 . word-event)
(1441372484363.557 . word-tick)
(1441372484363.582 . word-output)
(1441372484378.543 . word-label)
(1441372484380.665 . word-fps)
(1441372484380.726 . word-evt)
(1441372484396.178 . word-tick)
(1441372484396.23 . word-output)
(1441372484428.95 . word-label)
(1441372484433.464 . word-fps)
(1441372484433.528 . word-evt)
(1441372484449.092 . word-tick)
(1441372484449.137 . word-output)
(1441372484464.849 . word-label)
(1441372484468.168 . word-fps)
(1441372484468.228 . word-evt)
(1441372484481.986 . word-tick)
(1441372484482.046 . word-output)
(1441372484496.794 . word-label)
(1441372484497.776 . word-fps)
(1441372484497.886 . word-evt)
(1441372484515.311 . word-tick)
(1441372484515.363 . word-output)
(1441372484529.563 . word-label)
(1441372484532.765 . word-fps)
(1441372484532.893 . word-evt)
(1441372484565.079 . word-tick)
(1441372484565.179 . word-output)
(1441372484579.575 . word-label)
(1441372484582.086 . word-fps)
(1441372484582.148 . word-evt)
(1441372484582.215 . word-event)
(1441372484584.817 . word-event)
(1441372484596.42 . word-tick)
(1441372484596.467 . word-output)
(1441372484629.751 . word-label)
(1441372484632.913 . word-fps)
(1441372484632.981 . word-evt)
(1441372484633.061 . word-event)
(1441372484649.874 . word-tick)
(1441372484649.919 . word-output)
(1441372484665.124 . word-label)
(1441372484666.135 . word-fps)
(1441372484666.235 . word-evt)
(1441372484666.32 . word-event)
(1441372484668.429 . word-event)
(1441372484680.213 . word-event)
(1441372484683.139 . word-tick)
(1441372484683.193 . word-output)
(1441372484698.3 . word-label)
(1441372484699.73 . word-fps)
(1441372484699.832 . word-evt)
(1441372484699.952 . word-event)
(1441372484714.647 . word-event)
(1441372484715.427 . word-tick)
(1441372484715.489 . word-output)
(1441372484729.741 . word-label)
(1441372484733.276 . word-fps)
(1441372484733.34 . word-evt)
(1441372484765.551 . word-tick)
(1441372484765.626 . word-output)
(1441372484780.65 . word-label)
(1441372484783.178 . word-fps)
(1441372484783.244 . word-evt)
(1441372484783.325 . word-event)
(1441372484785.262 . word-event)
(1441372484796.573 . word-event)
(1441372484797.764 . word-tick)
(1441372484797.782 . word-output)
(1441372484829.841 . word-label)
(1441372484832.541 . word-fps)
(1441372484832.616 . word-evt)
(1441372484849.087 . word-tick)
(1441372484849.143 . word-output)
(1441372484866.278 . word-label)
(1441372484867.205 . word-fps)
(1441372484867.27 . word-evt)
(1441372484867.366 . word-event)
(1441372484867.57 . word-event)
(1441372484883.738 . word-tick)
(1441372484883.797 . word-output)
(1441372484898.314 . word-label)
(1441372484899.373 . word-fps)
(1441372484899.488 . word-evt)
(1441372484899.579 . word-event)
(1441372484899.698 . word-event)
(1441372484915.697 . word-tick)
(1441372484915.761 . word-output)
(1441372484930.827 . word-label)
(1441372484933.137 . word-fps)
(1441372484933.213 . word-evt)
(1441372484933.291 . word-event)
(1441372484933.418 . word-event)
(1441372484948.875 . word-event)
(1441372484948.971 . word-tick)
(1441372484948.987 . word-output)
(1441372484964.713 . word-label)
(1441372484965.952 . word-fps)
(1441372484966.068 . word-evt)
(1441372484966.149 . word-event)
(1441372484981.716 . word-event)
(1441372484981.792 . word-tick)
(1441372484981.813 . word-output)
(1441372484998.856 . word-label)
(1441372485001.932 . word-fps)
(1441372485002.022 . word-evt)
(1441372485002.071 . word-event)
(1441372485016.007 . word-tick)
(1441372485016.067 . word-output)
(1441372485030.818 . word-label)
(1441372485033.857 . word-fps)
(1441372485033.986 . word-evt)
(1441372485034.07 . word-event)
(1441372485034.209 . word-event)
(1441372485048.767 . word-event)
(1441372485048.867 . word-tick)
(1441372485048.883 . word-output)
(1441372485066.536 . word-label)
(1441372485068.176 . word-fps)
(1441372485068.248 . word-evt)
(1441372485068.369 . word-event)
(1441372485081.81 . word-event)
(1441372485082.423 . word-event)
(1441372485083.841 . word-tick)
(1441372485083.882 . word-output)
(1441372485099.262 . word-label)
(1441372485100.27 . word-fps)
(1441372485100.379 . word-evt)
(1441372485115.647 . word-event)
(1441372485116.218 . word-tick)
(1441372485116.248 . word-output)
(1441372485131.166 . word-label)
(1441372485133.489 . word-fps)
(1441372485133.565 . word-evt)
(1441372485133.62 . word-event)
(1441372485149.53 . word-tick)
(1441372485149.603 . word-output)
(1441372485166.458 . word-label)
(1441372485167.761 . word-fps)
(1441372485167.903 . word-evt)
(1441372485168.006 . word-event)
(1441372485168.147 . word-event)
(1441372485181.811 . word-event)
(1441372485184.308 . word-tick)
(1441372485184.352 . word-output)
(1441372485199.469 . word-label)
(1441372485200.455 . word-fps)
(1441372485200.502 . word-evt)
(1441372485200.563 . word-event)
(1441372485215.571 . word-event)
(1441372485216.337 . word-tick)
(1441372485216.381 . word-output)
(1441372485231.42 . word-label)
(1441372485236.087 . word-fps)
(1441372485236.183 . word-evt)
(1441372485236.259 . word-event)
(1441372485267.201 . word-tick)
(1441372485267.293 . word-output)
(1441372485282.309 . word-label)
(1441372485285.098 . word-fps)
(1441372485285.198 . word-evt)
(1441372485285.314 . word-event)
(1441372485285.442 . word-event)
(1441372485298.932 . word-event)
(1441372485298.991 . word-tick)
(1441372485299.002 . word-output)
(1441372485334.888 . word-label)
(1441372485335.847 . word-fps)
(1441372485335.934 . word-evt)
(1441372485349.927 . word-event)
(1441372485351.679 . word-tick)
(1441372485351.72 . word-output)
(1441372485366.846 . word-label)
(1441372485367.81 . word-fps)
(1441372485367.867 . word-evt)
(1441372485367.989 . word-event)
(1441372485371.054 . word-event)
(1441372485382.511 . word-event)
(1441372485384.117 . word-tick)
(1441372485384.164 . word-output)
(1441372485399.56 . word-label)
(1441372485400.577 . word-fps)
(1441372485400.624 . word-evt)
(1441372485416.917 . word-event)
(1441372485417.039 . word-tick)
(1441372485417.056 . word-output)
(1441372485431.809 . word-label)
(1441372485434.437 . word-fps)
(1441372485434.514 . word-evt)
(1441372485434.58 . word-event)
(1441372485434.691 . word-event)
(1441372485450.001 . word-tick)
(1441372485450.066 . word-output)
(1441372485467.423 . word-label)
(1441372485468.81 . word-fps)
(1441372485468.905 . word-evt)
(1441372485469.067 . word-event)
(1441372485482.2 . word-event)
(1441372485484.911 . word-tick)
(1441372485484.958 . word-output)
(1441372485500.044 . word-label)
(1441372485501.027 . word-fps)
(1441372485501.073 . word-evt)
(1441372485501.131 . word-event)
(1441372485501.349 . word-event)
(1441372485517.62 . word-tick)
(1441372485517.685 . word-output)
(1441372485532.966 . word-label)
(1441372485535.686 . word-fps)
(1441372485535.886 . word-evt)
(1441372485535.961 . word-event)
(1441372485550.649 . word-tick)
(1441372485550.717 . word-output)
(1441372485567.25 . word-label)
(1441372485568.748 . word-fps)
(1441372485568.873 . word-evt)
(1441372485569.026 . word-event)
(1441372485569.147 . word-event)
(1441372485583.402 . word-event)
(1441372485583.747 . word-event)
(1441372485583.927 . word-tick)
(1441372485583.948 . word-output)
(1441372485600.626 . word-label)
(1441372485601.679 . word-fps)
(1441372485601.726 . word-evt)
(1441372485617.885 . word-event)
(1441372485618.02 . word-tick)
(1441372485618.041 . word-output)
(1441372485633.129 . word-label)
(1441372485636.105 . word-fps)
(1441372485636.225 . word-evt)
(1441372485636.368 . word-event)
(1441372485649.918 . word-tick)
(1441372485649.961 . word-output)
(1441372485686.127 . word-label)
(1441372485687.394 . word-fps)
(1441372485687.47 . word-evt)
(1441372485687.571 . word-event)
(1441372485687.796 . word-event)
(1441372485718.531 . word-event)
(1441372485718.654 . word-tick)
(1441372485718.682 . word-output)
(1441372485733.569 . word-label)
(1441372485736.363 . word-fps)
(1441372485736.424 . word-evt)
(1441372485736.535 . word-event)
(1441372485752.039 . word-tick)
(1441372485752.107 . word-output)
(1441372485767.844 . word-label)
(1441372485768.911 . word-fps)
(1441372485768.958 . word-evt)
(1441372485769.06 . word-event)
(1441372485769.224 . word-event)
(1441372485783.908 . word-event)
(1441372485784.54 . word-tick)
(1441372485784.586 . word-output)
(1441372485801.688 . word-label)
(1441372485802.79 . word-fps)
(1441372485802.862 . word-evt)
(1441372485802.919 . word-event)
(1441372485817.752 . word-event)
(1441372485819.071 . word-tick)
(1441372485819.119 . word-output)
(1441372485834.164 . word-label)
(1441372485837.495 . word-fps)
(1441372485837.563 . word-evt)
(1441372485837.654 . word-event)
(1441372485869.353 . word-event)
(1441372485869.552 . word-tick)
(1441372485869.599 . word-output)
(1441372485884.412 . word-label)
(1441372485887.632 . word-fps)
(1441372485887.705 . word-evt)
(1441372485887.777 . word-event)
(1441372485919.398 . word-tick)
(1441372485919.486 . word-output)
(1441372485934.353 . word-label)
(1441372485936.801 . word-fps)
(1441372485936.864 . word-evt)
(1441372485936.94 . word-event)
(1441372485939.189 . word-event)
(1441372485952.354 . word-event)
(1441372485952.444 . word-tick)
(1441372485952.474 . word-output)
(1441372485968.131 . word-label)
(1441372485969.21 . word-fps)
(1441372485969.328 . word-evt)
(1441372485969.46 . word-event)
(1441372485984.786 . word-event)
(1441372485984.889 . word-tick)
(1441372485984.912 . word-output)
(1441372486002.44 . word-label)
(1441372486003.633 . word-fps)
(1441372486003.753 . word-evt)
(1441372486003.829 . word-event)
(1441372486018.82 . word-event)
(1441372486019.418 . word-tick)
(1441372486019.459 . word-output)
(1441372486034.456 . word-label)
(1441372486037.289 . word-fps)
(1441372486037.405 . word-evt)
(1441372486037.478 . word-event)
(1441372486051.247 . word-tick)
(1441372486051.288 . word-output)
(1441372486085.312 . word-label)
(1441372486087.846 . word-fps)
(1441372486087.917 . word-evt)
(1441372486087.984 . word-event)
(1441372486088.228 . word-event)
(1441372486103.684 . word-event)
(1441372486103.797 . word-tick)
(1441372486103.815 . word-output)
(1441372486119.517 . word-label)
(1441372486120.499 . word-fps)
(1441372486120.547 . word-evt)
(1441372486134.972 . word-event)
(1441372486135.208 . word-event)
(1441372486136.543 . word-tick)
(1441372486136.585 . word-output)
(1441372486153.146 . word-label)
(1441372486154.281 . word-fps)
(1441372486154.388 . word-evt)
(1441372486168.959 . word-event)
(1441372486170.244 . word-tick)
(1441372486170.298 . word-output)
(1441372486184.711 . word-label)
(1441372486187.41 . word-fps)
(1441372486187.477 . word-evt)
(1441372486187.594 . word-event)
(1441372486201.496 . word-event)
(1441372486201.577 . word-tick)
(1441372486201.589 . word-output)
(1441372486234.922 . word-label)
(1441372486236.976 . word-fps)
(1441372486237.147 . word-evt)
(1441372486237.206 . word-event)
(1441372486252.926 . word-tick)
(1441372486252.971 . word-output)
(1441372486269.415 . word-label)
(1441372486270.814 . word-fps)
(1441372486270.879 . word-evt)
(1441372486270.96 . word-event)
(1441372486271.123 . word-event)
(1441372486284.766 . word-event)
(1441372486285.743 . word-event)
(1441372486286.089 . word-tick)
(1441372486286.118 . word-output)
(1441372486303.83 . word-label)
(1441372486304.959 . word-fps)
(1441372486305.057 . word-evt)
(1441372486319.718 . word-event)
(1441372486321.167 . word-tick)
(1441372486321.211 . word-output)
(1441372486335.376 . word-label)
(1441372486338.348 . word-fps)
(1441372486338.471 . word-evt)
(1441372486338.55 . word-event)
(1441372486371.129 . word-tick)
(1441372486371.188 . word-output)
(1441372486385.027 . word-label)
(1441372486387.593 . word-fps)
(1441372486387.663 . word-evt)
(1441372486387.725 . word-event)
(1441372486390.019 . word-event)
(1441372486401.914 . word-event)
(1441372486401.984 . word-tick)
(1441372486401.998 . word-output)
(1441372486435.595 . word-label)
(1441372486438.881 . word-fps)
(1441372486438.984 . word-evt)
(1441372486439.061 . word-event)
(1441372486455.404 . word-tick)
(1441372486455.453 . word-output)
(1441372486471.657 . word-label)
(1441372486473.181 . word-fps)
(1441372486473.255 . word-evt)
(1441372486473.332 . word-event)
(1441372486486.053 . word-event)
(1441372486486.798 . word-event)
(1441372486488.703 . word-tick)
(1441372486488.75 . word-output)
(1441372486504.226 . word-label)
(1441372486505.267 . word-fps)
(1441372486505.366 . word-evt)
(1441372486505.58 . word-event)
(1441372486522.725 . word-tick)
(1441372486522.779 . word-output)
(1441372486536.337 . word-label)
(1441372486538.697 . word-fps)
(1441372486538.755 . word-evt)
(1441372486554.0 . word-tick)
(1441372486554.063 . word-output)
(1441372486570.046 . word-label)
(1441372486571.048 . word-fps)
(1441372486571.097 . word-evt)
(1441372486571.185 . word-event)
(1441372486587.638 . word-tick)
(1441372486587.68 . word-output)
(1441372486604.668 . word-label)
(1441372486605.69 . word-fps)
(1441372486605.8 . word-evt)
(1441372486623.578 . word-tick)
(1441372486623.62 . word-output)
(1441372486635.945 . word-label)
(1441372486639.391 . word-fps)
(1441372486639.522 . word-evt)
(1441372486653.261 . word-event)
(1441372486653.327 . word-tick)
(1441372486653.34 . word-output)
(1441372486686.392 . word-label)
(1441372486689.259 . word-fps)
(1441372486689.394 . word-evt)
(1441372486705.527 . word-tick)
(1441372486705.599 . word-output)
(1441372486722.181 . word-label)
(1441372486723.218 . word-fps)
(1441372486723.283 . word-evt)
(1441372486741.23 . word-tick)
(1441372486741.32 . word-output)
(1441372486754.731 . word-label)
(1441372486755.726 . word-fps)
(1441372486755.78 . word-evt)
(1441372486756.007 . word-event)
(1441372486771.598 . word-tick)
(1441372486771.666 . word-output)
(1441372486786.909 . word-label)
(1441372486789.913 . word-fps)
(1441372486789.991 . word-evt)
(1441372486790.116 . word-event)
(1441372486803.618 . word-tick)
(1441372486803.663 . word-output)
(1441372486839.526 . word-label)
(1441372486840.709 . word-fps)
(1441372486840.758 . word-evt)
(1441372486840.847 . word-event)
(1441372486841.079 . word-event)
(1441372486872.571 . word-event)
(1441372486872.67 . word-tick)
(1441372486872.708 . word-output)
(1441372486887.497 . word-label)
(1441372486890.083 . word-fps)
(1441372486890.154 . word-evt)
(1441372486890.221 . word-event)
(1441372486922.997 . word-tick)
(1441372486923.054 . word-output)
(1441372486937.71 . word-label)
(1441372486940.297 . word-fps)
(1441372486940.369 . word-evt)
(1441372486940.437 . word-event)
(1441372486940.534 . word-event)
(1441372486953.726 . word-event)
(1441372486954.023 . word-event)
(1441372486954.705 . word-tick)
(1441372486954.724 . word-output)
(1441372486986.813 . word-label)
(1441372486989.216 . word-fps)
(1441372486989.311 . word-evt)
(1441372487005.571 . word-event)
(1441372487005.654 . word-tick)
(1441372487005.666 . word-output)
(1441372487022.451 . word-label)
(1441372487023.738 . word-fps)
(1441372487023.801 . word-evt)
(1441372487023.875 . word-event)
(1441372487037.2 . word-event)
(1441372487038.286 . word-event)
(1441372487039.686 . word-tick)
(1441372487039.745 . word-output)
(1441372487055.614 . word-label)
(1441372487056.604 . word-fps)
(1441372487056.715 . word-evt)
(1441372487072.675 . word-tick)
(1441372487072.743 . word-output)
(1441372487087.506 . word-label)
(1441372487091.35 . word-fps)
(1441372487091.412 . word-evt)
(1441372487091.458 . word-event)
(1441372487091.589 . word-event)
(1441372487105.673 . word-event)
(1441372487105.765 . word-tick)
(1441372487105.781 . word-output)
(1441372487122.574 . word-label)
(1441372487123.555 . word-fps)
(1441372487123.615 . word-evt)
(1441372487123.692 . word-event)
(1441372487138.18 . word-event)
(1441372487252.358 . word-event)
(1441372487252.591 . word-tick)
(1441372487252.613 . word-output)
(1441372487272.869 . word-label)
(1441372487273.844 . word-fps)
(1441372487273.887 . word-evt)
(1441372487273.982 . word-event)
(1441372487274.118 . word-event)
(1441372487289.041 . word-event)
(1441372487289.781 . word-tick)
(1441372487289.859 . word-output)
(1441372487304.426 . word-label)
(1441372487307.265 . word-fps)
(1441372487307.369 . word-evt)
(1441372487307.432 . word-event)
(1441372487322.839 . word-tick)
(1441372487322.902 . word-output)
(1441372487340.105 . word-label)
(1441372487341.23 . word-fps)
(1441372487341.353 . word-evt)
(1441372487341.459 . word-event)
(1441372487341.566 . word-event)
(1441372487356.253 . word-event)
(1441372487356.874 . word-tick)
(1441372487356.933 . word-output)
(1441372487374.194 . word-label)
(1441372487375.226 . word-fps)
(1441372487375.288 . word-evt)
(1441372487391.777 . word-event)
(1441372487391.88 . word-tick)
(1441372487391.898 . word-output)
(1441372487404.951 . word-label)
(1441372487407.56 . word-fps)
(1441372487407.628 . word-evt)
(1441372487407.694 . word-event)
(1441372487423.885 . word-tick)
(1441372487423.947 . word-output)
(1441372487440.244 . word-label)
(1441372487441.869 . word-fps)
(1441372487441.935 . word-evt)
(1441372487442.011 . word-event)
(1441372487456.111 . word-event)
(1441372487459.416 . word-tick)
(1441372487459.469 . word-output)
(1441372487473.889 . word-label)
(1441372487475.024 . word-fps)
(1441372487475.098 . word-evt)
(1441372487475.161 . word-event)
(1441372487475.251 . word-event)
(1441372487490.315 . word-event)
(1441372487490.574 . word-tick)
(1441372487490.593 . word-output)
(1441372487506.518 . word-label)
(1441372487509.114 . word-fps)
(1441372487509.211 . word-evt)
(1441372487523.356 . word-event)
(1441372487523.477 . word-tick)
(1441372487523.506 . word-output)
(1441372487539.904 . word-label)
(1441372487540.958 . word-fps)
(1441372487541.014 . word-evt)
(1441372487555.541 . word-event)
(1441372487557.324 . word-tick)
(1441372487557.389 . word-output)
(1441372487573.4 . word-label)
(1441372487574.668 . word-fps)
(1441372487574.729 . word-evt)
(1441372487593.165 . word-tick)
(1441372487593.232 . word-output)
(1441372487605.762 . word-label)
(1441372487608.675 . word-fps)
(1441372487608.746 . word-evt)
(1441372487624.511 . word-tick)
(1441372487624.56 . word-output)
(1441372487641.271 . word-label)
(1441372487642.361 . word-fps)
(1441372487642.49 . word-evt)
(1441372487658.681 . word-tick)
(1441372487658.739 . word-output)
(1441372487673.476 . word-label)
(1441372487674.395 . word-fps)
(1441372487674.439 . word-evt)
(1441372487674.499 . word-event)
(1441372487693.451 . word-tick)
(1441372487693.493 . word-output)
(1441372487706.897 . word-label)
(1441372487709.597 . word-fps)
(1441372487709.671 . word-evt)
(1441372487726.181 . word-tick)
(1441372487726.244 . word-output)
(1441372487740.863 . word-label)
(1441372487741.938 . word-fps)
(1441372487742.054 . word-evt)
(1441372487758.743 . word-tick)
(1441372487758.796 . word-output)
(1441372487774.478 . word-label)
(1441372487775.478 . word-fps)
(1441372487775.526 . word-evt)
(1441372487775.857 . word-event)
(1441372487791.17 . word-tick)
(1441372487791.231 . word-output)
(1441372487806.529 . word-label)
(1441372487809.815 . word-fps)
(1441372487809.89 . word-evt)
(1441372487809.952 . word-event)
(1441372487843.084 . word-event)
(1441372487843.174 . word-tick)
(1441372487843.199 . word-output)
(1441372487856.235 . word-label)
(1441372487858.401 . word-fps)
(1441372487858.459 . word-evt)
(1441372487858.552 . word-event)
(1441372487858.67 . word-event)
(1441372487875.199 . word-tick)
(1441372487875.283 . word-output)
(1441372487891.531 . word-label)
(1441372487892.772 . word-fps)
(1441372487892.845 . word-evt)
(1441372487892.965 . word-event)
(1441372487906.831 . word-event)
(1441372487908.822 . word-tick)
(1441372487908.9 . word-output)
(1441372487925.514 . word-label)
(1441372487926.822 . word-fps)
(1441372487926.876 . word-evt)
(1441372487941.389 . word-event)
(1441372487942.168 . word-event)
(1441372487942.241 . word-tick)
(1441372487942.262 . word-output)
(1441372487956.89 . word-label)
(1441372487959.837 . word-fps)
(1441372487959.913 . word-evt)
(1441372487993.495 . word-event)
(1441372487993.618 . word-tick)
(1441372487993.639 . word-output)
(1441372488006.88 . word-label)
(1441372488009.348 . word-fps)
(1441372488009.41 . word-evt)
(1441372488009.498 . word-event)
(1441372488025.222 . word-tick)
(1441372488025.282 . word-output)
(1441372488042.064 . word-label)
(1441372488043.645 . word-fps)
(1441372488043.751 . word-evt)
(1441372488043.87 . word-event)
(1441372488057.338 . word-event)
(1441372488060.044 . word-tick)
(1441372488060.086 . word-output)
(1441372488074.931 . word-label)
(1441372488075.966 . word-fps)
(1441372488076.064 . word-evt)
(1441372488076.199 . word-event)
(1441372488093.565 . word-tick)
(1441372488093.619 . word-output)
(1441372488108.172 . word-label)
(1441372488110.383 . word-fps)
(1441372488110.46 . word-evt)
(1441372488125.463 . word-tick)
(1441372488125.525 . word-output)
(1441372488141.799 . word-label)
(1441372488142.813 . word-fps)
(1441372488142.871 . word-evt)
(1441372488161.384 . word-tick)
(1441372488161.434 . word-output)
(1441372488175.355 . word-label)
(1441372488176.798 . word-fps)
(1441372488176.856 . word-evt)
(1441372488177.072 . word-event)
(1441372488193.398 . word-tick)
(1441372488193.451 . word-output)
(1441372488208.24 . word-label)
(1441372488210.769 . word-fps)
(1441372488210.821 . word-evt)
(1441372488210.883 . word-event)
(1441372488226.298 . word-tick)
(1441372488226.363 . word-output)
(1441372488242.599 . word-label)
(1441372488244.143 . word-fps)
(1441372488244.225 . word-evt)
(1441372488244.301 . word-event)
(1441372488258.456 . word-event)
(1441372488259.667 . word-tick)
(1441372488259.715 . word-output)
(1441372488276.06 . word-label)
(1441372488277.073 . word-fps)
(1441372488277.187 . word-evt)
(1441372488292.942 . word-tick)
(1441372488293.006 . word-output)
(1441372488308.483 . word-label)
(1441372488311.156 . word-fps)
(1441372488311.221 . word-evt)
(1441372488311.3 . word-event)
(1441372488326.126 . word-tick)
(1441372488326.192 . word-output)
(1441372488342.743 . word-label)
(1441372488345.366 . word-fps)
(1441372488345.411 . word-evt)
(1441372488345.45 . word-event)
(1441372488345.654 . word-event)
(1441372488359.168 . word-event)
(1441372488359.552 . word-tick)
(1441372488359.59 . word-output)
(1441372488375.9 . word-label)
(1441372488376.943 . word-fps)
(1441372488376.996 . word-evt)
(1441372488377.141 . word-event)
(1441372488392.92 . word-event)
(1441372488393.044 . word-tick)
(1441372488393.066 . word-output)
(1441372488408.345 . word-label)
(1441372488411.213 . word-fps)
(1441372488411.322 . word-evt)
(1441372488411.37 . word-event)
(1441372488425.166 . word-tick)
(1441372488425.206 . word-output)
(1441372488461.646 . word-label)
(1441372488462.952 . word-fps)
(1441372488463.006 . word-evt)
(1441372488463.067 . word-event)
(1441372488463.159 . word-event)
(1441372488478.433 . word-event)
(1441372488478.57 . word-tick)
(1441372488478.587 . word-output)
(1441372488494.989 . word-label)
(1441372488496.588 . word-fps)
(1441372488496.697 . word-evt)
(1441372488496.776 . word-event)
(1441372488512.228 . word-tick)
(1441372488512.293 . word-output)
(1441372488526.752 . word-label)
(1441372488528.114 . word-fps)
(1441372488528.174 . word-evt)
(1441372488544.716 . word-tick)
(1441372488544.831 . word-output)
(1441372488558.891 . word-label)
(1441372488562.168 . word-fps)
(1441372488562.264 . word-evt)
(1441372488577.346 . word-tick)
(1441372488577.412 . word-output)
(1441372488593.798 . word-label)
(1441372488595.158 . word-fps)
(1441372488595.219 . word-evt)
(1441372488611.146 . word-tick)
(1441372488611.227 . word-output)
(1441372488626.743 . word-label)
(1441372488627.94 . word-fps)
(1441372488628.052 . word-evt)
(1441372488645.546 . word-tick)
(1441372488645.598 . word-output)
(1441372488658.975 . word-label)
(1441372488661.742 . word-fps)
(1441372488661.873 . word-evt)
(1441372488677.107 . word-tick)
(1441372488677.196 . word-output)
(1441372488693.375 . word-label)
(1441372488694.423 . word-fps)
(1441372488694.544 . word-evt)
(1441372488711.353 . word-tick)
(1441372488711.395 . word-output)
(1441372488727.118 . word-label)
(1441372488728.14 . word-fps)
(1441372488728.245 . word-evt)
(1441372488745.611 . word-tick)
(1441372488745.657 . word-output)
(1441372488759.26 . word-label)
(1441372488761.682 . word-fps)
(1441372488761.737 . word-evt)
(1441372488777.702 . word-tick)
(1441372488777.741 . word-output)
(1441372488795.078 . word-label)
(1441372488796.748 . word-fps)
(1441372488796.902 . word-evt)
(1441372488797.064 . word-event)
(1441372488812.606 . word-tick)
(1441372488812.682 . word-output)
(1441372488827.389 . word-label)
(1441372488828.436 . word-fps)
(1441372488828.543 . word-evt)
(1441372488846.297 . word-tick)
(1441372488846.355 . word-output)
(1441372488859.467 . word-label)
(1441372488862.114 . word-fps)
(1441372488862.173 . word-evt)
(1441372488878.014 . word-tick)
(1441372488878.074 . word-output)
(1441372488894.723 . word-label)
(1441372488896.218 . word-fps)
(1441372488896.278 . word-evt)
(1441372488913.137 . word-tick)
(1441372488913.178 . word-output)
(1441372488927.417 . word-label)
(1441372488928.452 . word-fps)
(1441372488928.499 . word-evt)
(1441372488930.098 . word-event)
(1441372488947.129 . word-tick)
(1441372488947.193 . word-output)
(1441372488959.843 . word-label)
(1441372488962.22 . word-fps)
(1441372488962.285 . word-evt)
(1441372488979.017 . word-tick)
(1441372488979.078 . word-output)
(1441372488995.194 . word-label)
(1441372488996.772 . word-fps)
(1441372488996.837 . word-evt)
(1441372489012.682 . word-tick)
(1441372489012.745 . word-output)
(1441372489029.018 . word-label)
(1441372489030.112 . word-fps)
(1441372489030.236 . word-evt)
(1441372489046.554 . word-tick)
(1441372489046.609 . word-output)
(1441372489060.407 . word-label)
(1441372489063.494 . word-fps)
(1441372489063.57 . word-evt)
(1441372489079.343 . word-tick)
(1441372489079.418 . word-output)
(1441372489095.426 . word-label)
(1441372489096.849 . word-fps)
(1441372489096.925 . word-evt)
(1441372489112.807 . word-tick)
(1441372489112.866 . word-output)
(1441372489128.363 . word-label)
(1441372489129.509 . word-fps)
(1441372489129.625 . word-evt)
(1441372489147.024 . word-tick)
(1441372489147.126 . word-output)
(1441372489160.524 . word-label)
(1441372489163.138 . word-fps)
(1441372489163.204 . word-evt)
(1441372489183.192 . word-tick)
(1441372489183.23 . word-output)
(1441372489195.158 . word-label)
(1441372489196.195 . word-fps)
(1441372489196.296 . word-evt)
(1441372489196.425 . word-event)
(1441372489196.465 . word-return)

103
word.rkt
View File

@ -62,57 +62,60 @@
;; the FPS and the alarm deadlines should never reset. It needs to be ;; the FPS and the alarm deadlines should never reset. It needs to be
;; considerably changed to fix that. I did something in the last ;; considerably changed to fix that. I did something in the last
;; reverted commit, but I don't likw it. ;; reverted commit, but I don't likw it.
(define (compute-next-time start-time fps)
(define time-incr (fl* (fl/ 1.0 fps) 1000.0))
(define next-time (fl+ start-time time-incr))
next-time)
(define (factum-fiat-lux c w) (define (factum-fiat-lux c w)
(define (update-word w f make-next-time) (define (continue-or-word-return next-w old-w k)
(define start-time (current-inexact-milliseconds)) (cond
(define new-w (f w)) [(not next-w)
(match new-w ((LOG! word-return) old-w)]
[#f [else
((LOG! word-return) w)] (k next-w)]))
[_ (define (output&process-input&wait frame-start-time w)
(chaos-output! c ((LOG! word-output) new-w)) (chaos-output! c ((LOG! word-output) w))
(define end-time (current-inexact-milliseconds)) (define frame-end-time (current-inexact-milliseconds))
(define frame-time (fl- end-time start-time)) (define frame-time (- frame-end-time frame-start-time))
(define new-label (define new-label ((LOG! word-label) w frame-time))
((LOG! word-label) new-w frame-time)) (chaos-label! c new-label)
(chaos-label! c new-label)
(define next-time (make-next-time new-w start-time)) (define fps ((LOG! word-fps) w))
(body next-time new-w)])) (define next-time (compute-next-time frame-end-time fps))
(define (compute-next-time start-time fps) (define deadline-evt (alarm-evt next-time))
(define time-incr (fl* (fl/ 1.0 fps) 1000.0)) (define input-enabled? (zero? fps))
(define next-time (fl+ start-time time-incr))
next-time) (define w-evt ((LOG! word-evt) w))
(define (body next-time w) (define c-evt (chaos-event c))
(define input-evt (define w-or-c-evt (choice-evt w-evt c-evt))
(handle-evt
(choice-evt ((LOG! word-evt) w) (let process-input&wait ([w w])
(chaos-event c)) (define wait-evt
(λ (e) (handle-evt deadline-evt
(update-word w (λ (_)
(λ (w) (define next-w ((LOG! word-tick) w))
((LOG! word-event) w e)) (continue-or-word-return
(λ (new-w start-time) next-w w
(define old-fps ((LOG! word-fps) w)) (λ (next-w)
(define fps ((LOG! word-fps) new-w)) (output&process-input&wait frame-end-time next-w))))))
(if (= old-fps fps) (define input-evt
next-time (handle-evt w-or-c-evt
(compute-next-time start-time fps))))))) (λ (e)
(define refresh-evt (define next-w ((LOG! word-event) w e))
(handle-evt (continue-or-word-return
(alarm-evt next-time) next-w w
(λ (_) (λ (next-w)
(update-word w (if input-enabled?
(LOG! word-tick) (output&process-input&wait frame-end-time next-w)
(λ (new-w start-time) (process-input&wait next-w)))))))
(define fps ((LOG! word-fps) new-w)) (define both-evt
(compute-next-time start-time fps)))))) (choice-evt input-evt wait-evt))
(sync/timeout (sync/timeout
(λ () (λ () (chaos-yield c both-evt))
(chaos-yield input-evt)))
c
(choice-evt input-evt refresh-evt))) (chaos-swap! c (λ () (output&process-input&wait (current-inexact-milliseconds) w))))
input-evt))
(chaos-swap! c (λ () (body 0 w))))
(define-syntax-rule (LOG! id) (define-syntax-rule (LOG! id)
(begin (LOG!* 'id) id)) (begin (LOG!* 'id) id))