Slow blitting with combined pixel and surface alpha #1618
Labels
hard
A hard challenge to solve
Performance
Related to the speed or resource usage of the project
reproducible
confirmed that the issue can be replicated and there are instructions to reproduce the issue
SDL2
Surface
pygame.Surface
I recently discovered that surfaces can use both pixel and surface alpha in pygame2dev6. Curious about performance, I wrote a quick test. My results were somewhat surprising. When combined, the two alphas blit four times slower than either one alone.
Blubberquark suggested I submit an issue, presumably to remind him to take a look at some point. Feel free to close this at any time. This combination wasn't supported in previous releases, and future users hoping for fancy effects with pygame2 will likely use the renderer instead of software surfaces.
Here's the code I used
Related Docs: https://www.pygame.org/docs/ref/surface.html#pygame.Surface.blit
The text was updated successfully, but these errors were encountered: