-
-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
General information:
- OS name: Windows 7
- OS version: SP1
- OS architecture: 64 bits
- Resolutions:
- Monitor 1: 1920x1080
- Python version: 3.8.10
- MSS version: 7.0.1
Description of the warning/error
if disable windows aero(use classic theme) than performance will increased on x5-x7
Full message
with mss.mss() as sct:
bbox = (0, 0, 1280, 720)
log.console_time('MSS_start')
for i in range(1000):
screenshot = np.array(sct.grab(bbox), copy=False, order='C')
log.console_time('MSS1_end')
#print(screenshot.flags)
for i in range(1000):
screenshot = np.ascontiguousarray(sct.grab(bbox))
log.console_time('MSS2_end')
#print(screenshot.flags)
for i in range(1000):
screenshot = np.array(sct.grab(bbox))
log.console_time('MSS3_end')
with aero
2023-01-15 21:06:37,407 | window_capture.py -> <module>():127 | MainThread | INFO : [!t] MSS_start _ default _ exec_time: 2.430 ms
2023-01-15 21:06:55,844 | window_capture.py -> <module>():130 | MainThread | INFO : [!t] MSS1_end _ default _ exec_time: 18437 ms
2023-01-15 21:07:14,344 | window_capture.py -> <module>():134 | MainThread | INFO : [!t] MSS2_end _ default _ exec_time: 18499 ms
2023-01-15 21:07:32,763 | window_capture.py -> <module>():138 | MainThread | INFO : [!t] MSS3_end _ default _ exec_time: 18418 ms
with classic theme
2023-01-15 21:08:02,949 | window_capture.py -> <module>():127 | MainThread | INFO : [!t] MSS_start _ default _ exec_time: 2.263 ms
2023-01-15 21:08:05,410 | window_capture.py -> <module>():130 | MainThread | INFO : [!t] MSS1_end _ default _ exec_time: 2460. ms
2023-01-15 21:08:07,895 | window_capture.py -> <module>():134 | MainThread | INFO : [!t] MSS2_end _ default _ exec_time: 2484. ms
2023-01-15 21:08:11,611 | window_capture.py -> <module>():138 | MainThread | INFO : [!t] MSS3_end _ default _ exec_time: 3715. ms
try tests on win10, win11 and other python versions and type results