Jump to content

Script optimisations to reduce lag


Recommended Posts

Posted (edited)

what kind of lag are you getting? if it is a spike at certain times/activities then it is probably because you're missing a small sleep somewhere. you said you use lots of if/else if, you maybe have something like

if (animating) {
	if (whatever) {
		return something;
	} else {		//
		sleep(250); // if this is missing lag may happen
	}				//
}

that's my best guess without seeing anything from your end.

Edited by superuser
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...