map -> rectangular heightmap of contiguous raw altitudes #27

Open
opened 2026-02-27 04:14:03 +00:00 by jaynuine · 2 comments
Owner

currently we are allocating heap space of a point basis for each altitude, as well as storing our grid indirectly through nested arrays ;
this aims to move from such a model the only benefit of which is supporting lines of differing lengths which is a fairly niche use case that may be better implemented as a potential mask since we have no obvious NaN value for integers.

this would slightly reduce memory footprint and make freeing the heightmap much more straightforward ; it may also speed up map loading in going from one malloc call per point to one call for the entire grid.

currently we are allocating heap space of a point basis for each altitude, as well as storing our grid indirectly through nested arrays ; this aims to move from such a model the only benefit of which is supporting lines of differing lengths which is a fairly niche use case that may be better implemented as a potential mask since we have no obvious NaN value for integers. this would slightly reduce memory footprint and make freeing the heightmap much more straightforward ; it may also speed up map loading in going from one malloc call per point to one call for the entire grid.
jaynuine added this to the todo project 2026-02-27 04:14:03 +00:00
Author
Owner

this is but one possible arrangement for a mesh, and while it certainly constitutes a worthwhile optimisation, i will save this for future milestone.

ideally, we would generalise meshes to graphs rather than grids or nested arrays.
that's one more for the backlog pile.

this is but one possible arrangement for a mesh, and while it certainly constitutes a worthwhile optimisation, i will save this for future milestone. ideally, we would generalise meshes to graphs rather than grids or nested arrays. that's one more for the backlog pile.
jaynuine added this to the foundation milestone 2026-05-03 00:33:37 +00:00
jaynuine modified the milestone from foundation to >9000 2026-05-03 00:33:40 +00:00
Author
Owner

as far as the foundation milestone is concerned, we will actually disable non strictly rectangular height maps so that the current draw_segments won't need to be reconsidered.

as far as the foundation milestone is concerned, we will actually disable non strictly rectangular height maps so that the current draw_segments won't need to be reconsidered.
Sign in to join this conversation.
No labels
bug
mlx
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaynuine/fdf#27
No description provided.