Using SDL_GetPerformanceCounter() instead of SDL_GetTicks()