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

Make offscreen OpenGL-Rendering mode efficient #221

Open
pasbi opened this issue Jan 30, 2022 · 0 comments
Open

Make offscreen OpenGL-Rendering mode efficient #221

pasbi opened this issue Jan 30, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request performance Less computations, less memory usage or more speed

Comments

@pasbi
Copy link
Owner

pasbi commented Jan 30, 2022

Currently, the size of the texture that is being rendered is only affected by the current zoom and the object size.
That is, as you zoom closer to the object, the texture grows and grows.

That is not necessary and inefficient: The visible size of the texture does not need to be larger than the viewport size (in pixels).
I.e., if the zoom is deep enough, it suffices to render just a part of the object.

That'd limit the texture size to the viewport size without decreasing quality.
Note that the application currently crashes, if the offscreen texture becomes too large (the assertion in the Texture-constructor fails).

@pasbi pasbi added enhancement New feature or request bug Something isn't working performance Less computations, less memory usage or more speed labels Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request performance Less computations, less memory usage or more speed
Projects
None yet
Development

No branches or pull requests

1 participant