Skip to content

Commit eeac963

Browse files
authored
Change default capture method to WGA (#200)
1 parent 26f5e6e commit eeac963

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ Refer to the [build instructions](build%20instructions.md) if you'd like to buil
6868

6969
#### Capture Method
7070

71-
- **BitBlt** (fastest, least compatible)
72-
A good default fast option. But it cannot properly record OpenGL, Hardware Accelerated or Exclusive Fullscreen windows.
73-
The smaller the selected region, the more efficient it is.
7471
- **Windows Graphics Capture** (fast, most compatible, capped at 60fps)
7572
Only available in Windows 10.0.17134 and up.
7673
Due to current technical limitations, Windows versions below 10.0.0.17763 require having at least one audio or video Capture Device connected and enabled.
7774
Allows recording UWP apps, Hardware Accelerated and Exclusive Fullscreen windows.
7875
Adds a yellow border on Windows 10 (not on Windows 11).
7976
Caps at around 60 FPS.
77+
- **BitBlt** (fastest, least compatible)
78+
The best option when compatible. But it cannot properly record OpenGL, Hardware Accelerated or Exclusive Fullscreen windows.
79+
The smaller the selected region, the more efficient it is.
8080
- **Direct3D Desktop Duplication** (slower, bound to display)
8181
Duplicates the desktop using Direct3D.
8282
It can record OpenGL and Hardware Accelerated windows.

src/capture_method/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,6 @@ def get(self, __key: CaptureMethodEnum):
118118
)
119119

120120
CAPTURE_METHODS = CaptureMethodDict()
121-
CAPTURE_METHODS[CaptureMethodEnum.BITBLT] = CaptureMethodInfo(
122-
name="BitBlt",
123-
short_description="fastest, least compatible",
124-
description=(
125-
"\nA good default fast option. But it cannot properly record "
126-
"\nOpenGL, Hardware Accelerated or Exclusive Fullscreen windows. "
127-
"\nThe smaller the selected region, the more efficient it is. "
128-
),
129-
130-
implementation=BitBltCaptureMethod,
131-
)
132121
if ( # Windows Graphics Capture requires a minimum Windows Build
133122
WINDOWS_BUILD_NUMBER >= WGC_MIN_BUILD
134123
# Our current implementation of Windows Graphics Capture does not ensure we can get an ID3DDevice
@@ -147,6 +136,17 @@ def get(self, __key: CaptureMethodEnum):
147136
),
148137
implementation=WindowsGraphicsCaptureMethod,
149138
)
139+
CAPTURE_METHODS[CaptureMethodEnum.BITBLT] = CaptureMethodInfo(
140+
name="BitBlt",
141+
short_description="fastest, least compatible",
142+
description=(
143+
"\nThe best option when compatible. But it cannot properly record "
144+
"\nOpenGL, Hardware Accelerated or Exclusive Fullscreen windows. "
145+
"\nThe smaller the selected region, the more efficient it is. "
146+
),
147+
148+
implementation=BitBltCaptureMethod,
149+
)
150150
CAPTURE_METHODS[CaptureMethodEnum.DESKTOP_DUPLICATION] = CaptureMethodInfo(
151151
name="Direct3D Desktop Duplication",
152152
short_description="slower, bound to display",

0 commit comments

Comments
 (0)