


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.