-
Notifications
You must be signed in to change notification settings - Fork 10
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
Speed up terrain drawing with glDrawArrays from OpenGL 2.0. #120
Open
Quipyowert2
wants to merge
13
commits into
Globulation2:master
Choose a base branch
from
Quipyowert2:sprite-sheet
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
054d2b5
Generate sprite sheet on the fly.
Quipyowert2 1d92a76
Prepare for a potential speedup with glDrawArrays.
Quipyowert2 9b01b1d
More efficient sprite drawing.
Quipyowert2 e7b66a1
Inline the initializer lists into vector::insert.
Quipyowert2 bde87da
Fixed Boost error I was stuck on for two days.
Quipyowert2 4685eaa
Fix loading screen and Settings menu.
Quipyowert2 f6c0f88
Use Epoxy so that we can access OpenGL 2 functions.
Quipyowert2 0dbb307
Add Epoxy to Debian build dependencies.
Quipyowert2 3cb04f4
Look for epoxy in SConstruct.
Quipyowert2 ba5177a
Check that we have at least one non-NULL image.
Quipyowert2 01151a8
Make createTextureAtlas more exception-safe.
Quipyowert2 5a340b2
Remove unnecessary usingAtlas boolean.
Quipyowert2 0dfc8bd
Prevent drawing on atlas once generated by making it readonly.
Quipyowert2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should probably use a loop that tries all the possible width and height combinations here where width and height are <= the maximum texture size (
glGetIntegerv(GL_MAX_TEXTURE_SIZE)
). May need multiple sprite sheets if the maximum texture size is too small.