Switched to using texture rendering instead of software rendering. You can switch between the two by changing the RENDERER variable.