Frykaeshi Master
Member
Checking get functions every step:
Or creating two non local variables and checking/updating them every step:
Which one would be better for fps performance? Is it a waste of time to create these variables when I could just use get functions?
Thanks for any answers...
GML:
if (surface_get_width(shad_surf) != _cameraW) | (surface_get_height(shad_surf) != _cameraH) {}
GML:
if (cameraPrevW != _cameraW) | (cameraPrevH != _cameraH) {}
cameraPrevW = _cameraW; cameraPrevH = _cameraH;
Thanks for any answers...