He began to study the python, according to the book of Dawson, where he was trained through the development of simple toy scientists. I made a toy, did it in an office on a macbook, with an external monitor, everything worked. I came home, started poking around, started this made toy - everything works but it terribly slows down, and the macbook is howling with fans.

As a result, I began to look and turned out to be a strange garbage, if the game window on an external monitor, the load does not slow down anything. If on the laptop screen - start the brakes! This makes no sense! I thought maybe in the superwires something crooked - the library is a training for the book. Created stupidly a window with a cycle in PyGame directly the same garbage !! On an external monitor, everything is normal on a laptop load increases to 100 percent or more, and the number of processes increases two or more times! And even in the mode of the two monitors being shared on one monitor, one instance of the program behaves differently if the window from one monitor to another, and the number of processes jumps twice more at home !! I can not understand how the monitor so affects and what it is. Where to dig .. (Macbook 18, 15 inch, 32 GB, radeon560X, i9, quite enough for basic tasks and educational games to put it mildly !?)

Python 3.7, pygame 1.9.4 was installed via the pip python built into 3

ps As a result, I launched the test pygame.examples.aliensnfr as well slows down, it is worth dragging what has been launched into the external monitor everything works with great speed !!! The number of threads also changes when the brakes on the native monitor of the MacBook of threads becomes twice as much as soon as the window switches to the native screen! (18-19 vs. 8-9 on the outside)

  • Macbook has two video cards: built-in to the motherboard and separate. See which video card is active in each case. I suppose that with one monitor it uses the built-in part of the graphics on the CPU, and with two it includes a separate video card and counts everything on it. - Nick Volynkin

0