DragonFireSDK Forum

Programming Discussions => Game Programming => Topic started by: tlawork on July 26, 2013, 01:55:38 pm

Title: max number of (smaller) views
Post by: tlawork on July 26, 2013, 01:55:38 pm
Is there a rule of thumb as to how many views could be instantiated at one time? 

My views will be 48x48 pixels and I am working with a hex grid and I'm thinking of having one view for every grid unit - which could be 85x64 which would be 5440 2K views - or about 11-12 MB.

Is this too extreme for the DFSDK engine?

TODDL
Title: Re: max number of (smaller) views
Post by: expleo on August 09, 2013, 02:31:23 am
Hi, not sure ( I think there is max # views though), but, question:

would it not be a better idea to reuse views ? I guess you are not going to show the entire 5440 grids at once ? You can have an array that holds the value (and items) of all grids, but just display the ones that are currently on screen, if you understand ?