Implemented better timing mechanism for renders