layers performance
Hello,
to render an isometric map I have to define the order when the single blocks are drawed.
E.g. the blocks on the top of the screen have to be drawn first, and the blocks on the bottom of the screen have to be drawn last. see http://
So I have to use a lot of layers, i.e. one per horizontal row of blocks.
But this seems to have low performance.
-------
glcommon/base.py:
def doTasks(self, target=None):
...
for layer in self.layers:
for ref in self.shaders.
-------
This looks like the complexity is O(n^2). The other doTasks functions look similar.
Wouldn't it be possible to speed this up, if you had one list of shader (or whatever) per layer, something like:
-------
glcommon/base.py:
def doTasks(self, target=None):
for layer in self.layers:
for ref in self.shaders_
-------
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask tobs12 for more information if necessary.