-
Notifications
You must be signed in to change notification settings - Fork 420
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
Switch to a multiplatform mmap implementation. #106
Conversation
I believe you can find them here: |
Ah! :) Will check those out tomorrow, then. |
It has a RAII interface, so no need for explicit unmapping there. Also made the code more const.
It ensures that CORRADE_TARGET_WINDOWS is always defined on Windows. Additionally, I switched to CORRADE_TARGET_UNIX from __linux__ (after excluding CORRADE_TARGET_APPLE) because there's BSD too.
3a6916d
to
7fc47d2
Compare
Ok, it took ages to download, but everything seems to work the same way as before! :) |
Great, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks for cleaning this up @mosra LGTM for landing! 👍
…rch#106) The habitat-api-demo.ipynb notebook illustrates how to specify config parameters, print semantic annotations of a scene. It also visualises the RGB, semantic and depth observations obtained by executing a random sequence of actions.
* assets: use a multiplatform Corrade::Utility::Directory::mapRead(). It has a RAII interface, so no need for explicit unmapping there. Also made the code more const. * gfx: use Corrade's platform defines for reliable documented behavior. It ensures that CORRADE_TARGET_WINDOWS is always defined on Windows. Additionally, I switched to CORRADE_TARGET_UNIX from __linux__ (after excluding CORRADE_TARGET_APPLE) because there's BSD too.
Motivation and Context
Should help with #84 -- we don't need to reinvent things that are already implemented and tested :) Also made the code a bit more
const
-correct and simplified some pointer chasings.How Has This Been Tested
It builds for me on Linux.
⚠️ Even though the change is pretty straightforward, there's not much to screw up and the underlying API has been extensively tested in other contexts, unfortunately I'm afraid I don't have any PTex mesh data to give this a real test, sorry.Successfully tested with Replica.Types of changes