mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
WIP: use compute shader instead of graphics shader for better performance (especially on amd)
This commit is contained in:
@@ -1072,8 +1072,9 @@ static void open_video_hardware(AVCodecContext *codec_context, VideoQuality vide
|
||||
// TODO: More quality options
|
||||
if(low_power)
|
||||
av_dict_set_int(&options, "low_power", 1, 0);
|
||||
// Improves performance but increases vram
|
||||
//av_dict_set_int(&options, "async_depth", 8, 0);
|
||||
// Improves performance but increases vram.
|
||||
// TODO: Might need a different async_depth for optimal performance on different amd/intel gpus
|
||||
//av_dict_set_int(&options, "async_depth", 3, 0);
|
||||
|
||||
if(codec_context->codec_id == AV_CODEC_ID_H264) {
|
||||
// Removed because it causes stutter in games for some people
|
||||
|
||||
Reference in New Issue
Block a user