Optimized renderer beta Fixes #4628

Hey,

So this is a beta version of the renderer I made which includes samplers for various glstate properties. Some testing shows that it is not a trivial thing to implement, as in some cases blocking calls which are supposed to be redundant ends up breaking things elsewhere. I will edit this post to elaborate more on outstanding bugs and issues soon.