Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Use indexed renders for lines #44

Merged
merged 9 commits into from
Feb 12, 2014
Merged

Use indexed renders for lines #44

merged 9 commits into from
Feb 12, 2014

Conversation

kkaefer
Copy link
Member

@kkaefer kkaefer commented Feb 11, 2014

We're currently using triangle strips for drawing the wide lines, but we should move to use indexed renders and GL_TRIANGLES. This allows us to avoid adding degenerate triangles over and over again, as well as benefit from vertex caching because we can share indices.

Until now, we got away with drawing triangle strips and using out of viewplane degenerate triangles. However, mobile devices are using a tiled GL renderer that penalizes that behavior because it can't confine rendering to one tile if we have geometries spread around the entire viewport.

  • support overflowing vertex buffers

@incanus incanus mentioned this pull request Feb 10, 2014
@kkaefer
Copy link
Member Author

kkaefer commented Feb 11, 2014

(This is based on #55)

@kkaefer
Copy link
Member Author

kkaefer commented Feb 12, 2014

Improves the situation slightly, but still not to a level where we can get good performance on difficult tiles like 6/33/21 (Netherlands):

before: 142.3ms CPU     42.8ms GPU
after: 130.7ms CPU     22.3ms GPU

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

Successfully merging this pull request may close these issues.

1 participant