-
Notifications
You must be signed in to change notification settings - Fork 926
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
NF: Return data from _createTexture #5706
base: dev
Are you sure you want to change the base?
Conversation
@EitanHemed the tests are failing:
By the way, could you use the prefixes, like NF, BF, FF for the commit title so that when we view the commit history we can filter by different types. The pull request title and description is just within GitHub not in the git history itself. That's better to be written to be informative to the user |
Thanks Jon. Sure, somehow i missed that it applies for the commits. |
@EitanHemed just so you're aware, I like this idea but it feels like a big change to make this close to a release date. I'd prefer we wait a few weeks and then pull it in so that it will go live in the winter release instead, giving us longer to see if there are any problems with the concept |
I see no problem with this (especially as i haven't fixed the remaining issues on the added tests yet). |
I think to save on memory we should try using pixel buffer objects (PBO). All Example from
|
So, if the above example code became a new
|
@EitanHemed @mdcutone we need to get a decision on this and pull in one or other option to be included in the 2024.1.0 release |
I'm not sure how this is useful without the ability to map the GPU data to client memory. Holding a copy of the image in memory as a numpy array is something users can just do now without doing the expensive texture creation step whenever a update is needed. If we can map the texture to an array view, users can update portions of it very quickly without doing a full copy or creating new texture handle. What is tricky here is that you cannot safely just get an array, work on it, then update it without some sort of context management. There needs to be explicit calls to unmap the buffer when the operation is complete. Possibly, we can do something like this:
|
This addition aims to make the array of image values being available by default, as an attribute of ImageStim.