File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 88from os import environ
99
1010from pygame .version import ver
11+ from pygame .system import get_cpu_instruction_sets
1112
1213ImportResult = Tuple [str , bool , Optional [Callable ]]
1314
@@ -60,10 +61,14 @@ def _get_platform_info():
6061 """
6162 Internal helper to get platform information
6263 """
64+ cpu_inst_dict = get_cpu_instruction_sets ()
65+ sse2 = 'Yes' if cpu_inst_dict ['SSE2' ] else 'No'
66+ avx2 = 'Yes' if cpu_inst_dict ['AVX2' ] else 'No'
67+ neon = 'Yes' if cpu_inst_dict ['NEON' ] else 'No'
6368 ret = f"Platform:\t \t { platform .platform ()} \n "
6469 ret += f"System:\t \t \t { platform .system ()} \n "
6570 ret += f"System Version:\t \t { platform .version ()} \n "
66- ret += f"Processor:\t \t { platform .processor ()} \n "
71+ ret += f"Processor:\t \t { platform .processor ()} \t SSE2: { sse2 } \t AVX2: { avx2 } \t NEON: { neon } \ n "
6772 ret += (
6873 f"Architecture:\t \t Bits: { platform .architecture ()[0 ]} \t "
6974 f"Linkage: { platform .architecture ()[1 ]} \n \n "
You can’t perform that action at this time.
0 commit comments