You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Disclaimer: I'm not sure this even is the right place in the stack to ask this, but maybe if it's not, someone can point me to the correct place instead)
I've been using imgui-wgpu-rs with implot-rs for a while and it's been working well (aside from #44 (comment), which I've still not been able to fix :D) until I plot a large amount of data. At that point, I hit imgui's "large meshes" limit (https://github.com/ocornut/imgui/blob/master/imconfig.h#L91). With the Glium backend, things still work because it advertises that it supports VtxOffset through the backend flags.
imgui-wgpu-rs doesn't advertise this flag, and when I just overwrote it myself to see if it'd work anyway, I got visual artifacts. Now my question is: Would it be possible for imgui-wgpu-rs to add support for these VtxOffsets? I have no knowledge of imgui's internals so far, but I'd be willing to put some effort towards making such support happen. I'd probably need some pointers for where to get started though.
Thanks in advance for any help / explanations!
The text was updated successfully, but these errors were encountered:
Before this, drawing more than 64k vertices would crash with the aforementioned imgui assert, but with this change in place, I was able to draw upwards of 800k vertices without any issues! I've not created a PR to master here because I can't really test things on account of that other issue still being there with implot, but feel free to just apply the linked commit yourself.
Or, of course, if any of my changes don't make sense / destroy performance / set computers on fire, please also do let me know :D I don't really know what I'm doing after all, I just played with things until everything worked and looked roughly like the Glium implementation.
(Disclaimer: I'm not sure this even is the right place in the stack to ask this, but maybe if it's not, someone can point me to the correct place instead)
I've been using
imgui-wgpu-rs
withimplot-rs
for a while and it's been working well (aside from #44 (comment), which I've still not been able to fix :D) until I plot a large amount of data. At that point, I hit imgui's "large meshes" limit (https://github.com/ocornut/imgui/blob/master/imconfig.h#L91). With the Glium backend, things still work because it advertises that it supportsVtxOffset
through the backend flags.imgui-wgpu-rs
doesn't advertise this flag, and when I just overwrote it myself to see if it'd work anyway, I got visual artifacts. Now my question is: Would it be possible forimgui-wgpu-rs
to add support for theseVtxOffset
s? I have no knowledge of imgui's internals so far, but I'd be willing to put some effort towards making such support happen. I'd probably need some pointers for where to get started though.Thanks in advance for any help / explanations!
The text was updated successfully, but these errors were encountered: