kjagrpk908
Member
I hope to know with() statement performance.
Whitch should I use case1 or case2? (for performance up)
Case1:
//----------------------------------------
oOBJ.x = oOBJ.x + 1;
//---------------------------------------
Case2:
//---------------------------------------
with(oOBJ)
{
x = x + 1;
}
//---------------------------------------
(Game Maker 2)
https://docs2.yoyogames.com/index.html?page=source/_build/index.html
Whitch should I use case1 or case2? (for performance up)
Case1:
//----------------------------------------
oOBJ.x = oOBJ.x + 1;
//---------------------------------------
Case2:
//---------------------------------------
with(oOBJ)
{
x = x + 1;
}
//---------------------------------------
(Game Maker 2)
https://docs2.yoyogames.com/index.html?page=source/_build/index.html