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

[meta] Painting optimization #199

Open
kvark opened this issue Feb 2, 2022 · 1 comment
Open

[meta] Painting optimization #199

kvark opened this issue Feb 2, 2022 · 1 comment

Comments

@kvark
Copy link
Owner

kvark commented Feb 2, 2022

The painting method is currently very rough and could see a number of optimizations to speed it up by a good factor. Here is a rough plan:

  1. Add support for GPU time queries
  2. Set up a benchmarking scene. We want to know, roughly, given a fixed camera and the bar count, how much GPU time is spent per 1M of the bars (on average).
  3. Process bars in the pairs of 2, so that each pair of pixels produces exactly 2 bars unconditionally.
  4. Rotate the map so that the metadata for 2 points can be read using a single texture fetch.
  5. Merge height and metadata into one RGBA8Uint texture - Merge height and meta data into a single texture #5.
@kvark
Copy link
Owner Author

kvark commented Feb 4, 2022

I believe doing this transform will have enormous effect on performance. Not only we'll take 1 texture fetch instead of 4 for a pair of texels, but also we'll not need dependent texture fetches any more.

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

No branches or pull requests

1 participant