1

Is it wrong to think that pygame.time.delay(1000) is more accurate than time.sleep(1).

Does the pygame module use time.sleep() in its source code, or are they completely different?

Red
  • 26,798
  • 7
  • 36
  • 58
  • Not to sound snarky but for "Does the pygame module use time.sleep() in its source code, or are they completely different?" you could probably look that up – IanQ May 20 '20 at 19:50

1 Answers1

2

PyGame is based on Simple DirectMedia Layer (SDL). pygame.time.delay() is delegated to SDL_Delay. The implementation of SDL_Delay depends on the operating system.

Rabbid76
  • 202,892
  • 27
  • 131
  • 174