Minor changes
Fixed starvation in renderthread