瀏覽代碼

libobs: Increase texture encode buffering

Seems to solve lag encountered on the new AMF encoder. The SubmitInput
call in the AMF encoder can occasionally stall for quite a long amount
of time, but most take microseconds, so we can compensate by simply
increasing the buffering (3 to 10 textures).
jp9000 3 年之前
父節點
當前提交
07df6548fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-internal.h

+ 1 - 1
libobs/obs-internal.h

@@ -42,7 +42,7 @@
 #define NUM_TEXTURES 2
 #define NUM_CHANNELS 3
 #define MICROSECOND_DEN 1000000
-#define NUM_ENCODE_TEXTURES 3
+#define NUM_ENCODE_TEXTURES 10
 #define NUM_ENCODE_TEXTURE_FRAMES_TO_WAIT 1
 
 static inline int64_t packet_dts_usec(struct encoder_packet *packet)