On Tue, 28 Jul 2015 18:30:56 +0300 Ivan Uskov <ivan.us...@nablet.com> wrote:
> Hello All, > > The attached patch replaces 1 microsecond delay to 500 microsecond for > case when MFX library does return MFX_WRN_DEVICE_BUSY status. > In general this warning never appears for simple encoding or > transcoding session because GPU so fast so almost always not busy and > any delay value just not executes. > But for heavy transcoding tasks for example, when several QSV sessions > are running simultaneously the using of 1-microsecond delay may be > result of 1000 iterations per each frame. > So here possible a paradoxical case when GPU loading also loads CPU by dummy > tasks. > Official MFX/QSV samples by Intel are use 1 millisecond (i.e. 1000 > microseconds) everywhere where MFX_WRN_DEVICE_BUSY does appear. > So 500us is much more optimal value than 1us. > > > Are you 100% sure that there is no event-based way to handle this? Or does it exist and it's just not used? _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel