Skip to content

[Feature] Handle large plots with 16-bit index #171

Description

@brenocq

Feature description
This feature addresses the common "16-bit index overflow" issue in Dear ImGui. By default, ImDrawIdx is a short, limiting draw calls to 65535 vertices. High-density 3D surfaces and meshes easily exceed this limit, leading to visual glitches for users who haven't manually enabled 32-bit indices. ImPlot3D should internally manage vertex counts and automatically split draw commands to ensure stability across all configurations.

This issue was also reported here: #164

Tasks

  • Split rendering into multiple draw calls if needed
  • Create a stress-test demo with a 500×500 surface plot (250k vertices)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:mediumMedium prioritystatus:doingWork is currently in progresstype:featNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions