Skip to content

Implement continuous mode#112

Closed
Murmele wants to merge 22 commits intomaplibre:mainfrom
Murmele:rust_compilation_bug
Closed

Implement continuous mode#112
Murmele wants to merge 22 commits intomaplibre:mainfrom
Murmele:rust_compilation_bug

Conversation

@Murmele
Copy link
Collaborator

@Murmele Murmele commented Dec 5, 2025

This PR is far away from being finished, but maybe someone can have a look on it and provide feedback.
Implement continuous mode with map and renderer observer.

Not working

  • didFinishRenderingFrameTrampolineFunction crashes when called
  • setSize still crashes
  • renderer observer callback gets never called

Launch Checklist

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Include before/after visuals or gifs if this PR includes visual changes.
  • Write tests for all new functionality.
  • Document any changes to public APIs.
  • Post benchmark scores.
  • Add an entry to CHANGELOG.md under the ## main section.

Murmele and others added 22 commits November 16, 2025 13:02
Reason: previously the wrong callback was used
Reason: otherwise the static_assertion checks are wrong
Reason: the MapObserver Instance got deleted after the MapRenderer_new_with_observer call, because the variable which has the pointer to the MapObserver gets deleted and then also the references pointing on it are invalid
Reason: unintentionally added. It does nothing
Reason: Otherwise we have a livetime problem if the function is not static. For Closures move must be used to capture all variables by value!
Reason: because it is important to set it
@Murmele Murmele closed this Dec 5, 2025
@CommanderStorm
Copy link
Member

@Murmele you closed the PR, was this intentional?

@Murmele
Copy link
Collaborator Author

Murmele commented Dec 5, 2025

@CommanderStorm I found a simpler way for the Callback and I have to rework. I just crossed over that functionallity right after I opened the PR. I will reopen once I refactored

@Murmele
Copy link
Collaborator Author

Murmele commented Dec 9, 2025

I had to create a new PR, because I am not able to open this one again #115

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.

2 participants