WIP: use compute shader instead of graphics shader for better performance (especially on amd)

This commit is contained in:
dec05eba
2025-03-29 13:27:20 +01:00
parent 634a563bc0
commit a41a32cb90
18 changed files with 331 additions and 746 deletions

View File

@@ -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