Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - does a canvas take the time to draw non visible items

does a canvas take the time to draw non visible items

Problems with Canvas, OpenGL, etc...

does a canvas take the time to draw non visible items

Postby multiplydivide » Sat Oct 15, 2011 9:21 pm

is it wasteful to make a function call to draw a bitmap off the edge of a canvas, when no part of the bitmap will actually appear on the canvas?

I have a game set up which draws to a canvas, My game world is roughly double the size of the device screen, and has many small creatures/objects drawn to it... In order to draw all the objects in the game I simply iterate over the array list that contains the objects and draw them at their respected location minus the worlds offsets, regardless of if the object minus the offset is contained within the canvas's bounds... does the device even bother drawing the bitmap, or does it filter out my somewhat sloppy drawing techniques? and would it be more efficient to create a function "visible" which would tell me whether or not to draw the bitmap?
multiplydivide
Developer
Developer
 
Posts: 34
Joined: Wed Apr 28, 2010 2:09 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 3 guests