When programming in Python 3, using Pygame, there is a problem with updating portions of the screen on Mac OS.
For example:
import pygame
screen=pygame.display.set_mode((200,200))
screen.fill((100,100,100))
pygame.display.update(0,0,100,200)
This should display a screen half grey and half white, however, on Mac OS it updates the whole screen, making it all grey, as if I had written:
pygame.display.update(0,0,200,200)
Or
pygame.display.update()
Or
pygame.display.flip()
This can be a huge problem in developing optimised programs. If all I need to do is update one pixel, Pygame will update the whole screen and waste too much time doing it.
This has been a problem for years, as far as I can tell. I feel it has never been recognised and due to it many programs are poorly optimised or never finished.
I know this is a problem with Pygame itself, so does anyone know of any kind of fix or way around this?
Thanks!