Learned a lot about general computing on GPU via a youtube video.
Besides OpenGL compute shader, I'd prefer using OpenCL to update tons of units concurrently. I'll give it a try, but it seems like LWJGL's OpenCL binding is not well documented and only a few examples are given. Maybe I'll go further deeper in it.
@skyblond I am the lead dev/project owner of aparapi.com a library for writing java code that runs on the GPU through OpenCL... if your interested check it out.
@freemo Wow, that's really cool. I heart that library today and it's really for people who like me thinking "C is too much for me". BTW I'm using JDK11 and Kotlin mainly, so if this java version is supported, I'll have a try. Thanks!
@skyblond
Not a bad idea. Two points though.
1) you can use raw opencl bindings within aparapi. Basically you just use an annotation on the class that points to the file with the c-like code in it
2) aparapi normally generates the raw opencl code in c for you from the java code. So you can see what the code looks like in raw opencl