fand / veda

⚡VJ / Live Coding on Atom⚡
http://veda.gl/
MIT License
509 stars 34 forks source link

`time` only passes in VEDA if you have the editor in focus #124

Closed fand closed 5 years ago

fand commented 5 years ago

talk log on talk.lurk.org:

efairbanks 1:04 AM
@amagitakayosi I think `time` only passes in VEDA if you have the editor in focus

At least on Mac OS.

Is this intended? Is there a more reliable form of `time`?
I've got a radial display to show me how far I am through a 25 minute performance but I"m worried it's not super accurate because if I nav away from Atom and then come back 3.125 minutes later, it's not 1/8 of the way through, it's barely moved

bgold 1:51 AM
If I cmd-H atom it freezes, but not if I just have another app in front. I suspect the OS is stopping GL rendering when it knows there's nothing to see.
Strangely, the playback of videos doesn't seem affected (maybe it's on a different timer?)

echophon 2:18 AM
I suspect the same policies for background tabs apply https://developers.google.com/web/updates/2017/03/background_tabs

amagitakayosi 10:41 AM
oh it's not intended
it broke when I added rercoding feature https://github.com/fand/vedajs/blame/8a77a044d6a5d4dda69687392219f0380b5a0ab8/src/veda.ts#L644
fand commented 5 years ago

Fixed in v2.11.3 😎