improve ui for texture cache handling, and support build without opengl