Huge number of render calls

Huge number of render calls

Hi.

I want to thank you first for such amazing project.

And here is question

I added a render counter, it increments when SDLRenderDevice::render(Sprite*) and SDLRenderDevice::render(Renderable*) are called

And it set back to 0 on SDLRenderDevice::commitFrame.

Take a look at the picture it is a frame when render called 2513 times!

It is a map next to town, when u go up.

Also i have over 1500 render calls mostly on each camera point at the town.

I tested on 640 x 480.

Attachments: 
Preview
screen.png screen.png 395.4 Kb [2 download(s)]
Preview
debug.png debug.png 85.6 Kb [2 download(s)]