I am doing this LUA project which includes a C dll. I need it to call a function every 50 milliseconds, i know how to call this function but the program becomes incredibly slow every time i run this to call the function:
and i have searched the internet and found no other delay method, i can use a timer but it doesn't work with lua (if you want a it to call a lua command, u need a lua_State *L sent to you, or other it won't call it). Help...Code:While (true) { // Call Lua Function sleep(50); }