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

Remove unused generated OpenGL programs #12287

Merged

Conversation

kkaefer
Copy link
Contributor

@kkaefer kkaefer commented Jul 3, 2018

Since #9185 we started generating DDS-specific program objects to work around some OpenGL implementations that were slow with constant vertex attributes. When reusing a map object with many different styles, this leads to the generation of many permutations of Program objects that are retained indefinitely. This patch adds a retention duration which is 100 frames in continuous mode, and 20 frames for static frames.

@kkaefer kkaefer force-pushed the release-node-v4.0.0-remove-unused-programs branch from 167de70 to da75c4a Compare July 3, 2018 09:24
@kkaefer kkaefer requested a review from jfirebaugh July 3, 2018 09:25
@jfirebaugh jfirebaugh merged commit ced0f40 into release-node-v4.0.0 Jul 18, 2018
@jfirebaugh jfirebaugh deleted the release-node-v4.0.0-remove-unused-programs branch July 18, 2018 20:58
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.

2 participants