Some small optimizations
Improved GPU priority system