I've done some testing in one of my scenarios and something bothers me.
I have this method in my code which calculates where my actor should be placed:
What bothers me is that this method takes 4-5 ms to execute. Is it normal that "simple" calculations like these take so long to complete? Is there any way I can optimize it?
public void setCrossLocation(int x, int y)
{
crossX = x;
crossY = y;
setLocation(x * getWorld().tileSize, y * getWorld().tileSize + getWorld().tileSize * getWorld().getTopOffset());
}

