Bad Performance
I compiled Sherlock265, but it takes 40ms to 100ms to decode each frame of 1080p with 4 or even 8 threads on i7-4820K with 60% usage. VLC plays the same video smoothly with 15% cpu usage. I almost checked everything and couldn't find anything. I even commented show_frame but it's still the same.
I saw https://www.libde265.org/blog/2014/02/28/libde265-hevc-performance/ which suggests Libde265 can get to 125fps (8ms) for 1080p and the javascript player which plays smoothly.
I found out that I accidentally removed QMAKE_CXXFLAGS *= -fPIC, by adding this I got to 10ms, is there any other flag that can help?
sherlock265 is not meant for viewing real-time video. It's display routines are slow because of the diagnostic overlays that it draws. Use dec265 for example, it has fast display colorspace conversions.