Mr Errorz
Member
I am trying to cut down the number of texture swaps in my game,
and I was wondering if something I came up with actually helps or not.
what I am doing, is putting a code inside various objects' step event,
that basically says, if you're inside the view visible = true,
else visible = false;
something like:
if (x < view_xview[0]+980 and x > view_xview[0]-20) and (y < view_yview[0]+605 and y > view_yview[0]-60)
visible = true;
else
visible = false;
so, does something like that actually helps?
if an object's visible is set to false, does GM actually isn't draw anything?
and I was wondering if something I came up with actually helps or not.
what I am doing, is putting a code inside various objects' step event,
that basically says, if you're inside the view visible = true,
else visible = false;
something like:
if (x < view_xview[0]+980 and x > view_xview[0]-20) and (y < view_yview[0]+605 and y > view_yview[0]-60)
visible = true;
else
visible = false;
so, does something like that actually helps?
if an object's visible is set to false, does GM actually isn't draw anything?