Hi, I've been wondering if canvas has a limit boundary.
I mean if I use functions such asdrawline(), drawbitmap(), drawcircle(),
does android really draw something on the canvas and waste some CPU cycles??
because after all the drawing functions, the actual picture print on the screen is decided by the screen size. And if I draw on something that is out of screen size, it doesn't show up.
I want to do some small detail on my canvas by calling lots of drawing functions and make my surface "bling bling". If it is out of bound I don't want to use them, if they make my drawing slow down.
I am working on a little game by the structure of surfaceview, Thanks for any advice.
for Example:
I have a robot walking from a <-> b OUTSIDE the screen.
it takes 20 drawing functions to draw a robot walking picture on the canvas. If I scroll the screen, then I can see the robot.
So if the drawing function outside the screen really takes as much time as draw on screen. I have to detect that only if the robot's position can be seen by the user, then I draw. otherwise, i don't.
if the drawing function doesn't waste much CPU cycles, then I can just draw everytime even if the current screen cannot see the robot.