Fork me on GitHub
#core-async
<
2016-02-23
>
jcromartie16:02:10

is core/async deterministic enough to use for low-latency games?

jcromartie16:02:18

I could just try it of course simple_smile

ghadi16:02:11

yeah I'd be curious to know how it works out for you. timeout resolution is 10ms at the moment

jcromartie16:02:40

I don’t know if I’d use timeout for anything fine-grained

jcromartie16:02:52

I’ve been playing with some little games in Clojure

jcromartie16:02:22

just using a “classic" game loop, but I could see something like core/async being very useful for coordinating AI and such

jcromartie16:02:54

having multiple independent control flows going without coordinating threads would be great

donaldball16:02:46

I needed/wanted a clock signal with better accuracy than timeout so I wrote a timer-chan that uses the j.u.c scheduler

donaldball16:02:49

works pretty nicely with core.async; mediates with a dropping buffer, so if work takes longer than a tick for whatever reason, you just skip ticks

jcromartie16:02:25

so it puts a value on the chan at a regular interval?