-
Notifications
You must be signed in to change notification settings - Fork 547
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
Plots with more than 16384 points get silently truncated #30
Comments
Probably related to this (from the README):
|
Yep, that did the trick, thanks! |
Hi, PR #41 removes the need to enable 32bit indices. Regards! |
I'm not sure if this has been noted, but to be sure: using backends that support the
Below is a screenshot of the backend test provided in ocornut/imgui#2591 which seems to handle high vertex count appropriately side-by-side with ImPlot displaying a sin curve plot set for 100k points (instead of 1000 as in the demo). Similar to the OP, there's culling of point ranges >16k. [Edit: tested with default vulkan backend implementation of imgui] Perhaps #41 solves this, I haven't tested it yet. But it's likely related to a lack of check similar to what's done in imgui_draw.cpp lines 610-617 where when _VtxCurrentIdx passes 16k, it should be reset to 0 and then adding a new drawing command. |
Thanks for the notice.
Looping in @sergeyn if he wants to comment. |
nothing to comment. #41 fixes it once and for all. @wsphillips - you are correct, it'll render as much as can fit into current drawcmd and then allocate new one. And yeah, only line plots, I assume @epezent deals with the rest. |
@wsphillips , #41 has been merged and this should be fixed. Feel free to reopen the issue if you continue to have problems. |
Yes! Confrimed working on my end. Thanks @epezent and @sergeyn ! |
Tested with 218ed09
https://github.com/jpieper/implot/tree/20200511-bigplot
You can see that the more points which are culled, the further the plot gets drawn. I traced down a ways and couldn't figure out where the truncation was happening.
The text was updated successfully, but these errors were encountered: