-Made various optimizations to the j2dgl engine.