ragingdemonz
Member
I have an idea in my head which i'm sure many others have already thought of it. I've been using GMS2 for a while now and i'm still in the habit of Pre GMS 1.4 days.
However now that the step event is one gigantic text editor. I was wondering the effect it might have on local variables and collision checking. For instance at the start of the code if i were to make a local var called
onground = collision_checking_script() //Returns if touching floor or not
and just did a gigantic
//All Actions related to Collision detection go here
if onground
{
Action 1
Action 2
....nth action
}
would that technically boost my performance? Or would it roughly be the same since it has to check all the other actions as well?
just a thought before i go moving this this model of workflow.
However now that the step event is one gigantic text editor. I was wondering the effect it might have on local variables and collision checking. For instance at the start of the code if i were to make a local var called
onground = collision_checking_script() //Returns if touching floor or not
and just did a gigantic
//All Actions related to Collision detection go here
if onground
{
Action 1
Action 2
....nth action
}
would that technically boost my performance? Or would it roughly be the same since it has to check all the other actions as well?
just a thought before i go moving this this model of workflow.