clojure-gamedev

spiralganglion 2018-02-23T19:04:22.000564Z

@iwannaseethelight If you want to hit a steady 60hz, you're going to need to be very conscious about how much work you're giving the GC to do. Even when writing in C#, maintaing 60hz in Unity requires staying on top of your garbage.

spiralganglion 2018-02-23T19:11:45.000291Z

A common pattern for doing 60hz work with Clojure is to use Clojure to manage the broad logic of the game, and then for anything that requires lots of little changes every frame (physics, rendering), you handle that using your host language.

the2bears 2018-02-23T19:36:47.000393Z

play-clj, https://github.com/oakes/play-clj, uses that approach. It wraps libgdx so you have (among other things) a wrapper around OpenGL and Box2D.