8000 alphablit: Add env var to warning message by illume · Pull Request #3935 · pygame/pygame · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alphablit: Add env var to warning message #3935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

def spawn(self, cmd, **kwargs):
should_use_avx2 = os.environ.get('PYGAME_DETECT_AVX2', '') != ''
should_use_avx2 = False
# try to be thorough in detecting that we are on a platform that potentially supports AVX2
machine_name = platform.machine()
if ((machine_name.startswith(("x86", "i686")) or
Expand Down
5 changes: 4 additions & 1 deletion src_c/alphablit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3010,7 +3010,10 @@ premul_surf_color_by_alpha_non_simd(SDL_Surface *src, SDL_Surface *dst)
PyExc_RuntimeWarning, \
"Your system is " #s " capable but pygame was not " \
"built with support for it. The performance of some " \
"of your blits could be adversely affected", \
"of your blits could be adversely affected. Consider" \
" enabling compile time detection with environment " \
"variables like PYGAME_DETECT_AVX2=1 if you are " \
"compiling without cross compilation.", \
1) < 0) { \
return -1; \
} \
Expand Down
0