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

Any way to tell device to write into a memory region i defined? #72

Open
joepvand opened this issue May 8, 2023 · 1 comment
Open

Comments

@joepvand
Copy link

joepvand commented May 8, 2023

I am trying to minimize latency as much as possible, so i want to tell the stream to write directly into a region of memory i reserved elsewhere. Where another piece of my code reads out of it. Is that possible with this crate?

@raymanfx
Copy link
Owner

raymanfx commented May 9, 2023

Not possible at the moment, unfortunately. I am working on this, but it requires a bit of rearchitecturing in the I/O module.

You would probably want to use the userptr module for that in the future.

Is the memory-mapped access not good enough for you right now? If you can e.g. directly blit the mapped buffers, there will be no copying required. What does your usecase look like? What are you doing with the buffers after they are filled?

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

No branches or pull requests

2 participants