Improve performances of Texture class with compiling texture only once for every texture and not every
frame