Isn't the obvious solution to your timing problem to distribute it as a video file instead? To be played on 120Hz-capable hardware, obviously.
Show HN: Alzheimer's Buddy: Use Flashing Light and Sound at 40Hz
81–85 of 85 posts
Re: Show HN: Alzheimer's Buddy: Use Flashing Light and Sound at 40Hz
#82Given the problems people are having with their monitors, and the inherent issues with timing on a 60hz screen and timing on a enormous mass of abstraction... Using a microcontroller with a DAC and a LED array seems particularly well suited for this, while still being firmly a beginner level project.
Re: Show HN: Alzheimer's Buddy: Use Flashing Light and Sound at 40Hz
#83Cool concept and project. I don't know if browsers are capable of doing the flash reliably. I tried it out (non-epileptic and curious), and you can see that it's not a reliable 40Hz flash on either Chrome or Firefox. I haven't looked to see what technique you are using for the timing, but there's quite a bit of jitter. EDIT: it's using requestAnimationFrame. Rather than using that, have you tried using CSS keyframes?…
Whether it's RAF or CSS, this would only reliably work on a 120hz display (or anything else higher than 80hz and divisible by 40.)
Re: Show HN: Alzheimer's Buddy: Use Flashing Light and Sound at 40Hz
#84Given the problems people are having with their monitors, and the inherent issues with timing on a 60hz screen and timing on a enormous mass of abstraction... Using a microcontroller with a DAC and a LED array seems particularly well suited for this, while still being firmly a beginner level project.