Currently, I have this code, which renders a textured cube. It works just fine with a few cubes, but when I add hundreds, it takes forever to create.
def get_