Sophia-Gold / WebGL-Convolution-Shaders

simple demo of eight convolution shaders
MIT License
8 stars 1 forks source link

Demo not working? #1

Open lmiller1990 opened 6 years ago

lmiller1990 commented 6 years ago

Hi,

I opened the demo but it's just a black screen with two sliders and dropdown. Is something supposed to render?

Sophia-Gold commented 6 years ago

This took me a while to figure out, but I'm pretty sure it's due to changes in the implementation of performance.now() in order to mitigate its use in timing attacks that take advantage of Spectre. See the note at the top here: https://developer.mozilla.org/en-US/docs/Web/API/Performance/now

I can't promise I'll fix this anytime soon, but I would like to preserve this repo as a resource for basic GLSL in the browser. If I can't find an alternative to calling that function it may just make sense to keep the FPS static since that's not really the point of this code anyway.

Thanks for bringing my attention to this!