Massively improve the fps limiter by again reimplementing pygame code. This is also how they do the fps limiting except the way they do the loop can only take an int.