DISCLAIMER: These notes are from the defunct k8 project which precedes SquirrelJME. The notes for SquirrelJME start on 2016/02/26! The k8 project was effectively a Java SE 8 operating system and as such all of the notes are in the context of that scope. That project is no longer my goal as SquirrelJME is the spiritual successor to it.
I seem to move things in my sleep.
With this cache manager I am going lock crazy to prevent re-allocations. I can just exploit the garbage collector and finalizers. When say a chunk is finalized it can just be stored to the disk. There also can always just be soft references on everything too.
I can also probably use synchronized instead of re-entrant lock so things are less bug prone in case I miss any locks. The game state cannot be drawn until the loop has finished.
Appears that Java byte code lacks a modulos operation. However, it is not difficult to recreate said operation as it is just a divide and a subtract. However a bonus on top of C is that Java permits modulo operations on floating point types. This removes the need for a fmod() call.
Never did 3D data in a flat array much before.