pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
767 stars 120 forks source link

Add SSE2, AVX2 & NEON support to `pygame.print_debug_info()` #2897

Closed MyreMylar closed 3 weeks ago

MyreMylar commented 1 month ago

These are the most common instruction sets we support paths for and could assist us in detecting bugs. There are more instruction sets listed in system.get_cpu_instuction_sets() but currently we don't make much use of them in pygame-ce.

Suggested by @Starbuck5

Starbuck5 commented 3 weeks ago

I don't have a problem with this PR per se, but my opinion is that we should probably have a centralized way to get and set the SIMD level at runtime.

You should open an issue about that. It shouldn't block this PR.

We will get this for free when SDL3 comes out, btw. SDL_HINT_CPU_FEATURE_MASK.