Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too many draw calls #1

Open
luxifr opened this issue Jan 9, 2015 · 1 comment
Open

too many draw calls #1

luxifr opened this issue Jan 9, 2015 · 1 comment
Labels

Comments

@luxifr
Copy link
Collaborator

luxifr commented Jan 9, 2015

Making progress with the OpenGL renderer. However, it is not any faster because of the way the level renderer renders the scene. It just makes far too many draw calls. More than 20.000 per frame(!).

I suggest combining as much as possible, i.e., create sprites for distinct scene objects. For example: Combine the scene background into a single sprite, with a single texture; combine each building into a single sprite, with a single texture, etc.

@luxifr luxifr added the bug label Jan 9, 2015
@horschi
Copy link
Owner

horschi commented Jan 9, 2015

I think we can prepare the "pillars" which would massively reduce the number of draw calls. Right now the game passes the 32x32 tiles individually to the Renderer (as they come from the data files).

This will not change the renderer interface, as we would simply pass fewer, but larger images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants