Skip to content

Conversation

doisyg
Copy link

@doisyg doisyg commented Jul 18, 2025

Description

(Draft to collect ideas)

When trying to display a map (OccupancyGrid) with an edge greater than 16384, the map displayed is empty.
It seems that the texture rendering fails silently. That specific limit is the OpenGL texture size limit on my machine.
This draft PR fixes it by doubling the Swatch number in that case.
Potential better/proper fix would be to query the system texture size limit.
Any ideas on how to best do that (and multi-platform/arch)?

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information

Tested the limit (and the fix) on multiple 13th Gen x86 intel CPU / iGPU. Potentially this limit is different for other platforms.

@doisyg doisyg marked this pull request as draft July 18, 2025 16:22
@doisyg doisyg marked this pull request as ready for review August 4, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant