allow to set how many frames to compare
frames to compare for cuda