mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(desktop): reuse window capture items on Windows 10 (#3449)
This commit is contained in:
1 parent
d514501d57
commit
8cac3b35c9
14 files changed
+824
-6
No files matched your search
@@ -94,9 +94,27 @@ function restoreGpuSchedulingPriority(processId) {
|
||||
}
|
||||
}
|
||||
|
||||
function reuseWindowCaptureItems() {
|
||||
if (!binding) return false;
|
||||
try {
|
||||
binding.reuseWindowCaptureItems();
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.warn('[win-game-capture] reuseWindowCaptureItems failed:', error?.message || error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function windowCaptureItemCalls() {
|
||||
if (!binding) return null;
|
||||
return binding.windowCaptureItemCalls();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
elevateGpuSchedulingPriority,
|
||||
restoreGpuSchedulingPriority,
|
||||
reuseWindowCaptureItems,
|
||||
windowCaptureItemCalls,
|
||||
get loadError() {
|
||||
return loadError;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user