tweak it so I can log to file; also subtly ignore invalid locations
trying to get around the 4K texture limit on some webGLs