I'm not sure if this is considered a tutorial.
I'm also not sure if this is a proper name for what this does.
Despite how simple it is, this is how I control lag usually maybe.
Some programs need lag or they will run too fast so what this program does is create lag. It's more customisable then using an ordinary VSYNC or WAIT.
First, set a value for LAGC(Should be 2 or higher)
- IF RE==LAGC THEN WAIT 1:RE=0
- GOTO @LOOP
The higher LAGC's value, the less delay occurring.
The lower LAGC's value, the more delay occurring.
Reading the comments on this may be helpful