Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello,

I am planning to make a real big city map (for a game) using 5-6 objects and drawing them with updated X,Y positions in a loop. So I'll call IIMAGE_Draw() for all object instances.

Total number of objects in the city map would be around 300 or more.
Objects falling within Device Screen range will be actually drawn but I'll have to call IIMAGE_Draw() for all objects instances.

As I know, in OpenGL, at rendering time, all the objects are calculated even if they are not visible in the view, waste of too much rendering time.

My question is, if I call IIMAGE_Draw for all objects, will the objects will be actually drawn outside the screen area (and same amount of time/(Processor Cycles) will consumed as if they are actually drawn on screen) or BREW trigger a return call (saving the actual drawing time) by checking that the object is out of display area?

I've processed few tests and I found that Draw function does not use any CPU cycle to draw an image outside the viewable area. I believe it simply returns the control without drawing the image checking it is out of Device display area.

I've processed few tests and I found that Draw function does not use any CPU cycle to draw an image outside the viewable area. I believe it simply returns the control without drawing the image checking it is out of Device display area.