core/renderloop: add some hysteresis to triple buffering
Switching to triple buffering requires dropping a frame, so if we constantly switch back and forth between double and triple buffering, that can cause very visible performance issues
(cherry picked from commit 0672313c)
Co-authored-by: Xaver Hugl xaver.hugl@gmail.com