thank you for your quick answer
1-i check my code and in just one line i set on_esc=NULL
and i write printf("%d",(long)on_esc); and now i can see a number (261153896)
what dose it mean?
2-yes when i comment call functions fps goes back to normal
3- why it stops on a very low fps (about 20 - 23) on a wide range of computers?
i test it with a very high configured pc and a medium pc . fps didn't change.
if i use a slow command , it must have better fps on high pc
thank you.