Merge: gamnit: use the same code to limit fps than mnit and fix errors